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

Afficher le fichier Open project: AMEE/revit Class Usage Examples

Méthodes publiques

Méthode 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

Méthodes protégées

Méthode Description
Dispose ( bool disposing ) : void

Clean up any resources being used.

Private Methods

Méthode 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 méthode

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
Résultat void

Dispose() protected méthode

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

TestDisplayDialog() public méthode

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
Résultat System