Class TypeDataModule
A LisRT module for TypeData.
Implements
Inherited Members
Namespace: Loehnert.Lisrt.TypeAndResult.LisrtModule
Assembly: Loehnert.Lisrt.TypeAndResult.dll
Syntax
public class TypeDataModule : LisrtModule, INotifyPropertyChangedEx, ILisrtModule, INotifyPropertyChanged, IHasServiceView
Constructors
TypeDataModule(String)
Initializes a new instance of the TypeDataModule class.
Declaration
public TypeDataModule(string name)
Parameters
Type | Name | Description |
---|---|---|
String | name | The name for the Loehnert.Lisrt.TypeAndResult.LisrtModule. |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException |
|
TypeDataModule(String, IShell, Lazy<GeminiTypeDataModule>)
Initializes a new instance of the TypeDataModule class.
Declaration
public TypeDataModule(string name, IShell shell, Lazy<GeminiTypeDataModule> geminiModule)
Parameters
Type | Name | Description |
---|---|---|
String | name | The name for the Loehnert.Lisrt.TypeAndResult.LisrtModule. |
IShell | shell | Shell for the service window. |
System.Lazy<GeminiTypeDataModule> | geminiModule | Gemini module for type data. |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException | Thrown when |
Properties
Icon
Gets the icon for the module.
Declaration
public override Uri Icon { get; }
Property Value
Type | Description |
---|---|
Uri |
Overrides
TreeItem
Gets the view model for the module.
Declaration
public override ITreeItem TreeItem { get; }
Property Value
Type | Description |
---|---|
ITreeItem |
Overrides
TypeData
Gets the type data.
Declaration
[AlsoNotifyFor("Icon")]
public TypeData TypeData { get; }
Property Value
Type | Description |
---|---|
TypeData |
Methods
Load(String, String)
Loads type data with the given identifier. Tries to inherit the base types recursive, if BaseTypeParameterDefinition is exported and defined.
Declaration
public void Load(string typeIdentifier, string providerName = null)
Parameters
Type | Name | Description |
---|---|---|
String | typeIdentifier | Identifier of type to load. |
String | providerName | Provider name, or null for the DefaultProvider. |
Remarks
Sets the base type parameter to System.String.Empty.
Exceptions
Type | Condition |
---|---|
System.InvalidOperationException | Thrown when |
System.ArgumentNullException | Thrown when |
TypeNotFoundException | Thrown when no type or base type with the given type identifier is found. |
SetTypeData(TypeData)
Sets the type data.
Declaration
public void SetTypeData(TypeData typeData)
Parameters
Type | Name | Description |
---|---|---|
TypeData | typeData | TypeData to set. Use null to unload type data. |
ShowServiceView()
Shows the service window.
Declaration
public void ShowServiceView()
Events
TypeDataLoaded
Occurs after type data were loaded.
Declaration
public event EventHandler TypeDataLoaded
Event Type
Type | Description |
---|---|
System.EventHandler |
TypeDataLoading
Occurs when type data are loading.
Declaration
public event EventHandler<TypeDataLoadingEventArgs> TypeDataLoading
Event Type
Type | Description |
---|---|
System.EventHandler<TypeDataLoadingEventArgs> |