Skip to main content
Definition: LIBS/DotNetUtils/Phoenix.ModelCenter.PlugIn/AbstractTradeStudyPlugIn.cs (line 57) 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:
Template parameters:
  • FormClass
Inherits from:

Members

Properties

Property DisposeOnClose

Definition: LIBS/DotNetUtils/Phoenix.ModelCenter.PlugIn/AbstractTradeStudyPlugIn.cs (line 68)
Whether or not the plug-in should be disposed when it is closed. Default is true; you may set this to false if you are automating the plug-in using COM and want to be able to re-show the window. Return type: bool

Property TradeStudyObject

Definition: LIBS/DotNetUtils/Phoenix.ModelCenter.PlugIn/AbstractTradeStudyPlugIn.cs (line 73)
Gets the trade study plug-in object. Return type: ITradeStudyPlugIn

Protected attributes

Variable _mainFormClosed

Definition: LIBS/DotNetUtils/Phoenix.ModelCenter.PlugIn/AbstractTradeStudyPlugIn.cs (line 128)
False until OnMainFormClosed is called. Type: bool

Private functions

Function construct

Parameters:
  • object modelCenter
  • object addToModel
  • object dataCollector
Return type: void ITradeStudyPlugIn.

Function fromString

Parameters:
  • string setupString
Return type: void ITradeStudyPlugIn.

Function show

Return type: bool ITradeStudyPlugIn.

Function toString

Return type: string ITradeStudyPlugIn.

Protected functions

Function OnInitialized

&para Return type: override void Reimplements: OnInitialized

Function OnMainFormClosed

&para Return type: override void Reimplements: OnMainFormClosed

Public functions

Function closeWindow

Close the main window. Returns: True if the user allowed the window to close. False if the close was canceled. Return type: bool