C# Class Revit.SDK.Samples.AddSpaceAndZone.CS.MainForm

The MainForm Class is the main user interface to manage the Space elements and Zone elements
Inheritance: System.Windows.Forms.Form
Exibir arquivo Open project: AMEE/revit Class Usage Examples

Public Methods

Method Description
MainForm ( DataManager dataManager ) : System

The constructor of MainForm.

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.

MainForm ( ) : System

The default constructor of MainForm.

MainForm_Load ( object sender, EventArgs e ) : void

When the MainForm is loaded, initialize related controls.

Update ( Level level ) : void

Update the spacesListView and spacesListView.

createSpacesButton_Click ( object sender, EventArgs e ) : void

When createSpacesButton is clicked, then create spaces and update the spacesListView

createZoneButton_Click ( object sender, EventArgs e ) : void

When createZoneButton is clicked, then create a new Zone element.

editZoneButton_Click ( object sender, EventArgs e ) : void

When editZoneButton is clicked, show the ZoneEditorForm to edit the selected ZoneNode.

levelComboBox_SelectedIndexChanged ( object sender, EventArgs e ) : void

When the levelComboBox selected index is changed, update the spacesListView and zonesTreeView.

zonesTreeView_AfterSelect ( object sender, TreeViewEventArgs e ) : void

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

MainForm() public method

The constructor of MainForm.
public MainForm ( DataManager dataManager ) : System
dataManager DataManager
return System