Class TypeDataModule
- Namespace
- Loehnert.Lisrt.TypeAndResult.LisrtModule
- Assembly
- Loehnert.Lisrt.TypeAndResult.dll
A LisRT module for TypeData.
public class TypeDataModule : LisrtModule, INotifyPropertyChangedEx, ILisrtModule, INotifyPropertyChanged, IHasServiceView
- Inheritance
-
PropertyChangedBaseTypeDataModule
- Implements
-
INotifyPropertyChangedEx
- Inherited Members
-
PropertyChangedBase.Refresh()PropertyChangedBase.IsNotifyingPropertyChangedBase.PropertyChanged
Constructors
TypeDataModule(string)
Initializes a new instance of the TypeDataModule class.
public TypeDataModule(string name)
Parameters
name
stringThe name for the Loehnert.Lisrt.TypeAndResult.LisrtModule.
Exceptions
- ArgumentNullException
name
cannot be null, empty or whitespace.
TypeDataModule(string, IShell, Lazy<GeminiTypeDataModule>)
Initializes a new instance of the TypeDataModule class.
public TypeDataModule(string name, IShell shell, Lazy<GeminiTypeDataModule> geminiModule)
Parameters
name
stringThe name for the Loehnert.Lisrt.TypeAndResult.LisrtModule.
shell
IShellShell for the service window.
geminiModule
Lazy<GeminiTypeDataModule>Gemini module for type data.
Exceptions
- ArgumentNullException
Thrown when
name
is null, empty or whitespace orshell
is null orgeminiModule
is null.
Properties
Icon
Gets the icon for the module.
public override Uri Icon { get; }
Property Value
TreeItem
Gets the view model for the module.
public override ITreeItem TreeItem { get; }
Property Value
TypeData
Gets the type data.
[AlsoNotifyFor("Icon")]
public TypeData TypeData { get; }
Property Value
Methods
Load(string, string)
Loads type data with the given identifier. Tries to inherit the base types recursive, if BaseTypeParameterDefinition is exported and defined.
public void Load(string typeIdentifier, string providerName = null)
Parameters
typeIdentifier
stringIdentifier of type to load.
providerName
stringProvider name, or null for the DefaultProvider.
Remarks
Sets the base type parameter to Empty.
Exceptions
- InvalidOperationException
Thrown when
providerName
is null and DefaultProvider is not set, orproviderName
is not registered.- ArgumentNullException
Thrown when
typeIdentifier
is null, empty or whitespace.- TypeNotFoundException
Thrown when no type or base type with the given type identifier is found.
SetTypeData(TypeData)
Sets the type data.
public void SetTypeData(TypeData typeData)
Parameters
ShowServiceView()
Shows the service window.
public void ShowServiceView()
Events
TypeDataLoaded
Occurs after type data were loaded.
public event EventHandler TypeDataLoaded
Event Type
TypeDataLoading
Occurs when type data are loading.
public event EventHandler<TypeDataLoadingEventArgs> TypeDataLoading