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
namestringThe name for the Loehnert.Lisrt.TypeAndResult.LisrtModule.
Exceptions
- ArgumentNullException
namecannot 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
namestringThe name for the Loehnert.Lisrt.TypeAndResult.LisrtModule.
shellIShellShell for the service window.
geminiModuleLazy<GeminiTypeDataModule>Gemini module for type data.
Exceptions
- ArgumentNullException
Thrown when
nameis null, empty or whitespace orshellis null orgeminiModuleis 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
typeIdentifierstringIdentifier of type to load.
providerNamestringProvider name, or null for the DefaultProvider.
Remarks
Sets the base type parameter to Empty.
Exceptions
- InvalidOperationException
Thrown when
providerNameis null and DefaultProvider is not set, orproviderNameis not registered.- ArgumentNullException
Thrown when
typeIdentifieris 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