C# Class Revit.SDK.Samples.Loads.CS.LoadsForm

Inheritance: System.Windows.Forms.Form
Mostra file Open project: AMEE/revit Class Usage Examples

Public Methods

Method Description
LoadsForm ( Loads dataBuffer ) : System

Constructor of LoadsForm

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Clean up any resources being used.

Private Methods

Method Description
CombinationsTabPageButtonEnable ( ) : void

This method used to check the state of all the buttons on Load Combination page, and judge whether the buttons should be enable or disable.

InitializeCombinationGrid ( ) : void

Initialize the loadCombination DataGridView control

InitializeComponent ( ) : void

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

InitializeFormulaGrid ( ) : void

Initialize the load combination formula DataGridView control

InitializeLoadCasePage ( ) : void

Initialize the data on this page.

InitializeLoadCasesDataGridView ( ) : void

Initialize the loadCasesDataGridView

InitializeLoadCombinationPage ( ) : void

Initialize the data on this page.

InitializeLoadNaturesDataGridView ( ) : void

Initialize the loadNaturesDataGridView

InitializeUsageGrid ( ) : void

Initialize the load combination usage DataGridView control

Initilize ( ) : void

enable button

LoadsForm_Load ( object sender, EventArgs e ) : void

Initialize the data on the form

ReLoad ( ) : void

Reload the data of the cases and natures

addLoadNaturesButton_Click ( object sender, EventArgs e ) : void

When addLoadNaturesButton clicked, add a new load nature.

cancelButton_Click ( object sender, EventArgs e ) : void

Respond the cancel button click event.

combinationDataGridView_GotFocus ( object sender, EventArgs e ) : void
deleteCombinationButton_Click ( object sender, EventArgs e ) : void

Delete Combination Button

duplicateLoadCasesButton_Click ( object sender, EventArgs e ) : void

When duplicateLoadCasesButton clicked, duplicate a load case.

formulaAddButton_Click ( object sender, EventArgs e ) : void

Add Formula Button

formulaDataGridView_GotFocus ( object sender, EventArgs e ) : void

If the formulaDataGridView get focus, enable the buttons in CombinationsTabPage

formulaDeleteButton_Click ( object sender, EventArgs e ) : void

Delete Formula Button

loadCasesDataGridView_CellClick ( object sender, System.Windows.Forms.DataGridViewCellEventArgs e ) : void

Respond the loadCasesDataGridView_CellClick event.

loadCasesDataGridView_CellValidating ( object sender, System.Windows.Forms.DataGridViewCellValidatingEventArgs e ) : void

Respond the DataGridView cell validating event, check the user's input whether it is correct.

loadCasesDataGridView_ColumnHeaderMouseClick ( object sender, System.Windows.Forms.DataGridViewCellMouseEventArgs e ) : void

Respond the loadCasesDataGridView_ColumnHeaderMouseClick event.

loadNaturesDataGridView_CellClick ( object sender, System.Windows.Forms.DataGridViewCellEventArgs e ) : void

Respond the loadNaturesDataGridView_CellClick event.

loadNaturesDataGridView_CellValidating ( object sender, System.Windows.Forms.DataGridViewCellValidatingEventArgs e ) : void

Respond the DataGridView cell validating event, check the user's input whether it is correct.

loadNaturesDataGridView_RowHeaderMouseClick ( object sender, System.Windows.Forms.DataGridViewCellMouseEventArgs e ) : void

Respond the loadNaturesDataGridView_RowHeaderMouseClick event.

newCombinationButton_Click ( object sender, EventArgs e ) : void

New Combination Button

okButton_Click ( object sender, EventArgs e ) : void

Respond the ok button click event.

usageAddButton_Click ( object sender, EventArgs e ) : void

Usage Add Button

usageCheckAllButton_Click ( object sender, EventArgs e ) : void

Check All Button

usageCheckNoneButton_Click ( object sender, EventArgs e ) : void

Check None Button

usageDataGridView_CellValidating ( object sender, System.Windows.Forms.DataGridViewCellValidatingEventArgs e ) : void

When modify Usage name, judge if the inputted Name is unique.

usageDataGridView_CellValueChanged ( object sender, System.Windows.Forms.DataGridViewCellEventArgs e ) : void
usageDataGridView_GotFocus ( object sender, EventArgs e ) : void

If the usageDataGridView get focus, enable the buttons in CombinationsTabPage

usageDataGridView_SelectionChanged ( object sender, EventArgs e ) : void

The following is the event when the usage DataGridView selection changed

usageDeleteButton_Click ( object sender, EventArgs e ) : void

Usage Delete Button

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

LoadsForm() public method

Constructor of LoadsForm
public LoadsForm ( Loads dataBuffer ) : System
dataBuffer Loads A reference of Loads class
return System