C# Class Revit.SDK.Samples.PerformanceAdviserControl.CS.TestDisplayDialog

Datei anzeigen Open project: AMEE/revit Class Usage Examples

Public Methods

Method Description
AddData ( string name, bool isOurRule, bool isEnabled ) : void

This method is called by UICommand::Execute() and adds test information to the grid data object "testData."

TestDisplayDialog ( PerformanceAdviser performanceAdviser, Document document ) : System

Basic setup -- stores references to the active document and PerformanceAdviser for later use

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.

btn_Cancel_Click ( object sender, EventArgs e ) : void

Closes the dialog without committing any action

btn_DeselectAll_Click ( object sender, EventArgs e ) : void

Called when the user clicks the "Deselect All" button.

btn_RunTests_Click ( object sender, EventArgs e ) : void

Called when the user clicks the "Run Selected Tests" button

btn_SelectAll_Click ( object sender, EventArgs e ) : void

Called when the user clicks the "Select All" button.

Method Details

AddData() public method

This method is called by UICommand::Execute() and adds test information to the grid data object "testData."
public AddData ( string name, bool isOurRule, bool isEnabled ) : void
name string The rule name
isOurRule bool Whether or not the rule is a the API-defined rule in this project
isEnabled bool Whether or not the rule is currently selected to run
return void

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

TestDisplayDialog() public method

Basic setup -- stores references to the active document and PerformanceAdviser for later use
public TestDisplayDialog ( PerformanceAdviser performanceAdviser, Document document ) : System
performanceAdviser PerformanceAdviser The revit PerformanceAdviser class
document Document The active document
return System