LIBS/DotNetUtils/Phoenix.ModelCenter.PlugIn/ModelCenterHost.cs (line 25)
Class which wraps the ModelCenter COM API.
You should be using SModelCenterHost instead of this class as it protects against certain crash cases.
Inherits from:
- AbstractDisposable
Members
- _dataCollector
- AddIconToModelCenter
- AddToModel
- AddVariable
- BringModelCenterToTop
- BringWindowToTop
- CheckOutLicenseFeature
- CheckOutLicenseFeature
- CommitVariableChanges
- CreateNewDataCollector
- CreatePlugInFrame
- createPlugInFrame
- createPlugInFrame2
- CurrentVariables
- DataCollector
- DataCollectorCreated
- DATE_EPOCH_SECONDS
- DATE_UTCG
- DATE_YEAR_MONTH_DAY
- Dispose
- find
- GetAssociatedFiles
- getGroups
- GetHasChanged
- GetRawValue
- GetValue
- getVariableInternal
- getVariables
- init
- IsAddedToModel
- Log
- mcVars
- ModelCenter
- ModelCenterDirectory
- ModelCenterHost
- ModelCenterHost
- ModelCenterWindow
- ModelCenterWindowHandle
- ModelDirectory
- MyComponent
- NumCurrentVariables
- RefreshFromModelCenter
- releaseMCVars
- ReleasePlugInFrame
- ResetHasChanged
- retrieveVariablesRecursive
- RootName
- SetAssociatedFiles
- SetAssociatedFiles
- SetGroupIcon
- SetValue
- SetValue
- setValueInternal
- ShowPlugInFrame
- variables
Private static attributes
Variable DATE_EPOCH_SECONDS
LIBS/DotNetUtils/Phoenix.ModelCenter.PlugIn/ModelCenterHost.cs (line 29)
Variable DATE_YEAR_MONTH_DAY
LIBS/DotNetUtils/Phoenix.ModelCenter.PlugIn/ModelCenterHost.cs (line 30)
Variable DATE_UTCG
LIBS/DotNetUtils/Phoenix.ModelCenter.PlugIn/ModelCenterHost.cs (line 31)
Private attributes
Variable mcVars
LIBS/DotNetUtils/Phoenix.ModelCenter.PlugIn/ModelCenterHost.cs (line 33)
Variable variables
LIBS/DotNetUtils/Phoenix.ModelCenter.PlugIn/ModelCenterHost.cs (line 34)
Variable _dataCollector
LIBS/DotNetUtils/Phoenix.ModelCenter.PlugIn/ModelCenterHost.cs (line 36)
Properties
Property ModelCenter
LIBS/DotNetUtils/Phoenix.ModelCenter.PlugIn/ModelCenterHost.cs (line 45)
Property DataCollector
LIBS/DotNetUtils/Phoenix.ModelCenter.PlugIn/ModelCenterHost.cs (line 50)
Property AddToModel
LIBS/DotNetUtils/Phoenix.ModelCenter.PlugIn/ModelCenterHost.cs (line 63)
Property MyComponent
LIBS/DotNetUtils/Phoenix.ModelCenter.PlugIn/ModelCenterHost.cs (line 68)
Property Log
LIBS/DotNetUtils/Phoenix.ModelCenter.PlugIn/ModelCenterHost.cs (line 74)
Property IsAddedToModel
LIBS/DotNetUtils/Phoenix.ModelCenter.PlugIn/ModelCenterHost.cs (line 203)
Property ModelDirectory
LIBS/DotNetUtils/Phoenix.ModelCenter.PlugIn/ModelCenterHost.cs (line 239)
Property RootName
LIBS/DotNetUtils/Phoenix.ModelCenter.PlugIn/ModelCenterHost.cs (line 283)
Property ModelCenterDirectory
LIBS/DotNetUtils/Phoenix.ModelCenter.PlugIn/ModelCenterHost.cs (line 289)
Property NumCurrentVariables
LIBS/DotNetUtils/Phoenix.ModelCenter.PlugIn/ModelCenterHost.cs (line 482)
Property CurrentVariables
LIBS/DotNetUtils/Phoenix.ModelCenter.PlugIn/ModelCenterHost.cs (line 495)
Property ModelCenterWindowHandle
LIBS/DotNetUtils/Phoenix.ModelCenter.PlugIn/ModelCenterHost.cs (line 735)
Property ModelCenterWindow
LIBS/DotNetUtils/Phoenix.ModelCenter.PlugIn/ModelCenterHost.cs (line 754)
Events
Event DataCollectorCreated
LIBS/DotNetUtils/Phoenix.ModelCenter.PlugIn/ModelCenterHost.cs (line 176)
Public functions
Function ModelCenterHost
- mc: The ModelCenter COM instance.
- atm: The AddToModel COM instance.
- IModelCenter mc
- IAddToModel atm
Function ModelCenterHost
- mc: The ModelCenter COM instance.
- atm: The AddToModel COM instance.
- dc: The DataCollector COM instance.
- IModelCenter mc
- IAddToModel atm
- IDataCollector dc
Function CreateNewDataCollector
- analysisType: The type of trade study or analysis.
- configuration: The configuration string.
- string analysisType
- string configuration
Function GetAssociatedFiles
Function SetAssociatedFiles
- files: The list of files.
- params string[] files
Function SetAssociatedFiles
- files: The sequence of files.
- ICollection< string > files
Function CheckOutLicenseFeature
- featureName: The name of the feature.
- string featureName
Function CheckOutLicenseFeature
- featureName: The name of the feature.
- releaseDate: The release date of the feature in yyyy.MMdd format.
- string featureName
- string releaseDate
Function RefreshFromModelCenter
Function CommitVariableChanges
Function AddVariable
- v: The variable
- PHXVariable v
Function GetValue
- name: The name of the variable.
- string name
Function GetRawValue
- name: The name of the variable.
- string name
Function SetValue
- v: The variable to set the value for.
- value: The value to set.
- PHXVariable v
- string value
Function SetValue
- name: The name of the variable.
- value: The value to set.
- string name
- string value
Function GetHasChanged
- name: The name of the variable.
- reset: Whether the flag should be reset.
- string name
- bool reset = false
Function ResetHasChanged
- name: The name of the variable.
- string name
Function BringWindowToTop
- hWnd: The window handle.
- IntPtr hWnd
Function BringModelCenterToTop
Function AddIconToModelCenter
- icon: The icon to load.
- Icon icon
Function SetGroupIcon
- groupName: The name of the group.
- iconID: The icon ID, returned from AddIconToModelCenter.
- string groupName
- short iconID
Function CreatePlugInFrame
- name: The name of the plugin.
- title: The window title.
- showFavorites: Whether to show favorites.
- plugin: The plugin object.
- initialSize: The initial size of the frame.
- minSize: The minimum size of the frame.
- string name
- string title
- bool showFavorites
- IComponentPlugIn plugin
- Size initialSize
- Size minSize
Function ShowPlugInFrame
- hwnd: The frame to show.
- IntPtr hwnd
Function ReleasePlugInFrame
- hWnd: The frame window handle.
- IntPtr hWnd
Private functions
Function init
Function releaseMCVars
Function retrieveVariablesRecursive
- prefix: The name prefix (previously-seen groups).
- mcObject: The component or group to search.
- string prefix
- object mcObject
Function getVariableInternal
- string name
Function setValueInternal
- IVariable var
- PHXDataType type
- string value
Function find
- mcObject: The component or group to search.
- name: The relative name to search for.
- object mcObject
- string name
Function createPlugInFrame2
- string name
- string title
- object plugin
- bool showFavorites
- Size initialSize
- Size minSize
Function createPlugInFrame
- string name
- string title
- object plugin
- bool showFavorites
- Size initialSize
Protected functions
Function Dispose
- disposing: Whether we are in the disposing phase
- bool disposing
Private static functions
Function getGroups
- object obj
Function getVariables
- object obj