C# Class Revit.SDK.Samples.LevelsProperty.CS.LevelsForm

new level form
Show file Open project: AMEE/revit Class Usage Examples

Public Methods

Method Description
LevelsForm ( ) : System

form for new levels

LevelsForm ( Command opt ) : System

The constructor is used to initialize some object.

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Clean up any resources being used.

Private Methods

Method Description
InitializeComponent ( ) : void

Required method for Designer support - do not modify the contents of this method with the code editor.

addButton_Click ( object sender, EventArgs e ) : void

Used to a new item in the dataGridView control.

deleteButton_Click ( object sender, EventArgs e ) : void

Used to delete a item.

levelsDataGridView_CellValidating ( object sender, DataGridViewCellValidatingEventArgs e ) : void

Judge if the inputted Name is unique.

levelsDataGridView_CellValueChanged ( object sender, DataGridViewCellEventArgs e ) : void

Record the changed Item.

levelsDataGridView_DataError ( object sender, DataGridViewDataErrorEventArgs e ) : void

Judge if the inputted Elevation is valid.

okButton_Click ( object sender, EventArgs e ) : void

Used to make setting apply to the model.

Method Details

Dispose() protected method

Clean up any resources being used.
protected Dispose ( bool disposing ) : void
disposing bool true if managed resources should be disposed; otherwise, false.
return void

LevelsForm() public method

form for new levels
public LevelsForm ( ) : System
return System

LevelsForm() public method

The constructor is used to initialize some object.
public LevelsForm ( Command opt ) : System
opt Command Used to get the Command class's object.
return System