C# Class Revit.SDK.Samples.CurtainSystem.CS.UI.CurtainForm

the main window form for UI operations
Inheritance: System.Windows.Forms.Form
Datei anzeigen Open project: AMEE/revit Class Usage Examples

Public Methods

Method Description
CurtainForm ( MyDocument mydoc ) : System

constructor

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.

InitializeCustomComponent ( ) : void

initialize some controls manually

RegisterEvents ( ) : void

register the customized events

addCGButton_Click ( object sender, EventArgs e ) : void

add curtain grids to the checked faces

cgCheckedListBox_ItemCheck ( object sender, System.Windows.Forms.ItemCheckEventArgs e ) : void

check the curtain grids to delete them, if user wants to check all the curtain grids for deletion, prohibit it (must keep at least one curtain grid)

createCSButton_Click ( object sender, EventArgs e ) : void

"Create curtain system" button clicked, hide the main form, pop up the create curtain system dialog to let user add a new curtain system. After the curtain system created, close the dialog and show the main form again

csLabel_Click ( object sender, EventArgs e ) : void
csListBox_SelectedIndexChanged ( object sender, EventArgs e ) : void

the selected curtain system changed, update the "Curtain grid" and "Uncovered faces" list boxes of the selected curtain system

deleteCSButton_Click ( object sender, EventArgs e ) : void

delete the checked curtain systems in the curtain system list box

facesCheckedListBox_SelectedIndexChanged ( object sender, EventArgs e ) : void
m_document_FatalErrorEvent ( string errorMsg ) : void

Fatal error occurs, close the sample dialog directly

m_document_MessageChanged ( ) : void

update the status hints in the status strip

m_document_SystemData_CurtainSystemChanged ( ) : void

curtain system changed(added/removed), refresh the lists

mainPanel_Paint ( object sender, PaintEventArgs e ) : void
removeCGButton_Click ( object sender, EventArgs e ) : void

remove the checked curtain grids from the curtain system Note: curtain system must have at least one curtain grid so sample users can't remove all the curtain grids away

Method Details

CurtainForm() public method

constructor
public CurtainForm ( MyDocument mydoc ) : System
mydoc Revit.SDK.Samples.CurtainSystem.CS.Data.MyDocument /// the data used in the sample ///
return System

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