LIBS/DotNetUtils/Phoenix.ModelCenter.PlugIn/AbstractModelCenterPlugIn.cs (line 67)
Base class for plug-in. Removes the need to implement all the custom loading/saving, etc. of a ModelCenter plug-in.
parameterlist {"type":"element","name":"parameterlist","attributes":{"kind":"templateparam"},"children":[{"type":"element","name":"parameteritem","attributes":{},"children":[{"type":"text","text":"\n"},{"type":"element","name":"parameternamelist","attributes":{},"children":[{"type":"text","text":"\n"},{"type":"element","name":"parametername","attributes":{},"children":[{"type":"text","text":"FormClass"}]},{"type":"text","text":"\n"}]},{"type":"text","text":"\n"},{"type":"element","name":"parameterdescription","attributes":{},"children":[{"type":"text","text":"\n"},{"type":"element","name":"para","attributes":{},"children":[{"type":"text","text":"The type of form to display, which must be derived from "},{"type":"element","name":"ref","attributes":{"kindref":"compound","refid":"classPhoenix_1_1ModelCenter_1_1PlugIn_1_1ModelCenterPlugInForm"},"children":[{"type":"text","text":"ModelCenterPlugInForm"}]},{"type":"text","text":". "}]},{"type":"text","text":"\n"}]},{"type":"text","text":"\n"}]},{"type":"text","text":"\n"}]}
How to create a plug-in:
- FormClass
- AbstractDisposable
- Phoenix.ModelCenter.PlugIn.IDotNetPlugIn
- IComponentPlugIn
Members
- _checkoutLicense
- AbstractModelCenterPlugIn
- Author
- closing
- ComObject
- Configuration
- construct
- createAndShowMainForm
- Description
- Dispose
- dtHandle
- FeatureReleaseDate
- fromString
- HelpPath
- HelpUrl
- Host
- Host_DataCollectorCreated
- icon
- Icon
- IconImage
- image
- IsClosing
- Keywords
- lastRunError
- licenseFeature
- LicenseFeatureName
- MainForm
- MainForm_Disposed
- mainFormLock
- metadata
- Metadata
- Name
- OnConfigurationLoaded
- OnConfigurationLoading
- OnConfigurationSaving
- OnConfigurationSerializing
- OnDataCollectorCretaed
- onEnd
- OnInitialized
- OnMainFormClosed
- OnMainFormCreated
- run
- Run
- run_DoWork
- RunInBackground
- running
- show
- ToolName
- ToolProvider
- toString
- Version
Private attributes
Variable icon
LIBS/DotNetUtils/Phoenix.ModelCenter.PlugIn/AbstractModelCenterPlugIn.cs (line 73)
Variable image
LIBS/DotNetUtils/Phoenix.ModelCenter.PlugIn/AbstractModelCenterPlugIn.cs (line 74)
Variable metadata
LIBS/DotNetUtils/Phoenix.ModelCenter.PlugIn/AbstractModelCenterPlugIn.cs (line 75)
Variable licenseFeature
LIBS/DotNetUtils/Phoenix.ModelCenter.PlugIn/AbstractModelCenterPlugIn.cs (line 76)
Variable running
LIBS/DotNetUtils/Phoenix.ModelCenter.PlugIn/AbstractModelCenterPlugIn.cs (line 77)
Variable lastRunError
LIBS/DotNetUtils/Phoenix.ModelCenter.PlugIn/AbstractModelCenterPlugIn.cs (line 78)
Variable closing
LIBS/DotNetUtils/Phoenix.ModelCenter.PlugIn/AbstractModelCenterPlugIn.cs (line 79)
Variable dtHandle
LIBS/DotNetUtils/Phoenix.ModelCenter.PlugIn/AbstractModelCenterPlugIn.cs (line 80)
Variable mainFormLock
LIBS/DotNetUtils/Phoenix.ModelCenter.PlugIn/AbstractModelCenterPlugIn.cs (line 81)
Properties
Property MainForm
LIBS/DotNetUtils/Phoenix.ModelCenter.PlugIn/AbstractModelCenterPlugIn.cs (line 90)
Property Host
LIBS/DotNetUtils/Phoenix.ModelCenter.PlugIn/AbstractModelCenterPlugIn.cs (line 95)
Property Metadata
LIBS/DotNetUtils/Phoenix.ModelCenter.PlugIn/AbstractModelCenterPlugIn.cs (line 100)
Property ComObject
LIBS/DotNetUtils/Phoenix.ModelCenter.PlugIn/AbstractModelCenterPlugIn.cs (line 111)
Property LicenseFeatureName
LIBS/DotNetUtils/Phoenix.ModelCenter.PlugIn/AbstractModelCenterPlugIn.cs (line 125)
Property FeatureReleaseDate
LIBS/DotNetUtils/Phoenix.ModelCenter.PlugIn/AbstractModelCenterPlugIn.cs (line 139)
Property RunInBackground
LIBS/DotNetUtils/Phoenix.ModelCenter.PlugIn/AbstractModelCenterPlugIn.cs (line 588)
false, you can still use worker threads in your implementation of Run().
Return type: bool
Property Configuration
LIBS/DotNetUtils/Phoenix.ModelCenter.PlugIn/AbstractModelCenterPlugIn.cs (line 601)
null if there are no settings.
Return type: abstract object
Property IsClosing
LIBS/DotNetUtils/Phoenix.ModelCenter.PlugIn/AbstractModelCenterPlugIn.cs (line 724)
Property Name
LIBS/DotNetUtils/Phoenix.ModelCenter.PlugIn/AbstractModelCenterPlugIn.cs (line 729)
Property Author
LIBS/DotNetUtils/Phoenix.ModelCenter.PlugIn/AbstractModelCenterPlugIn.cs (line 734)
Property Description
LIBS/DotNetUtils/Phoenix.ModelCenter.PlugIn/AbstractModelCenterPlugIn.cs (line 745)
Property HelpUrl
LIBS/DotNetUtils/Phoenix.ModelCenter.PlugIn/AbstractModelCenterPlugIn.cs (line 756)
Property HelpPath
LIBS/DotNetUtils/Phoenix.ModelCenter.PlugIn/AbstractModelCenterPlugIn.cs (line 767)
Property Keywords
LIBS/DotNetUtils/Phoenix.ModelCenter.PlugIn/AbstractModelCenterPlugIn.cs (line 778)
Property Version
LIBS/DotNetUtils/Phoenix.ModelCenter.PlugIn/AbstractModelCenterPlugIn.cs (line 789)
Property ToolName
LIBS/DotNetUtils/Phoenix.ModelCenter.PlugIn/AbstractModelCenterPlugIn.cs (line 800)
Property ToolProvider
LIBS/DotNetUtils/Phoenix.ModelCenter.PlugIn/AbstractModelCenterPlugIn.cs (line 811)
Property Icon
LIBS/DotNetUtils/Phoenix.ModelCenter.PlugIn/AbstractModelCenterPlugIn.cs (line 822)
Property IconImage
LIBS/DotNetUtils/Phoenix.ModelCenter.PlugIn/AbstractModelCenterPlugIn.cs (line 858)
Protected functions
Function AbstractModelCenterPlugIn
Function Dispose
- disposing: Indicates whether the method was called by Dispose or by the destructor.
- bool disposing
Function OnInitialized
Function OnConfigurationLoading
true. If you do not want to use custom deserialization, either do not access the reader or make sure not to move it past the first element and return false.
If you do custom work, be sure not to read past the end of the initial node.
Parameters:
- pluginName: The name encoded in the serialized data; null if not present.
- version: The version of the plug-in that had been saved; null if not present.
- reader: The XML reader; can be used to do custom deserialization. It is placed at the beginning of the root node of the serialized data.
- string pluginName
- string version
- XmlReader reader
Function OnConfigurationLoaded
Function OnConfigurationSaving
Function OnMainFormCreated
Function OnMainFormClosed
Function OnDataCollectorCretaed
- dataCollector: The data collector.
- IDataCollector dataCollector
Function OnConfigurationSerializing
true. If you do not want to use custom serialization, either do not access the writer or make sure not to close the root element and return false.
If you do custom work, be sure not to write an open ended element.
Parameters:
- writer: The XML writer; can be used to do custom serialization.
- XmlWriter writer
Private functions
Function Host_DataCollectorCreated
- sender: The sending object.
- e: The event args.
- object sender
- DataCollectorCreatedEventArgs e
Function construct
- object modelCenter
- object addToModel
- object dataCollector
Function fromString
- string setupString
Function onEnd
Function run_DoWork
- object sender
- DoWorkEventArgs e
Function _checkoutLicense
Function run
Function createAndShowMainForm
Function MainForm_Disposed
- object sender
- EventArgs e