Table of Contents

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
PropertyChangedBase
TypeDataModule
Implements
INotifyPropertyChangedEx
Inherited Members
PropertyChangedBase.Refresh()
PropertyChangedBase.IsNotifying
PropertyChangedBase.PropertyChanged

Constructors

TypeDataModule(string)

Initializes a new instance of the TypeDataModule class.

public TypeDataModule(string name)

Parameters

name string

The 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 string

The name for the Loehnert.Lisrt.TypeAndResult.LisrtModule.

shell IShell

Shell for the service window.

geminiModule Lazy<GeminiTypeDataModule>

Gemini module for type data.

Exceptions

ArgumentNullException

Thrown when name is null, empty or whitespace or shell is null or geminiModule is null.

Properties

Icon

Gets the icon for the module.

public override Uri Icon { get; }

Property Value

Uri

TreeItem

Gets the view model for the module.

public override ITreeItem TreeItem { get; }

Property Value

ITreeItem

TypeData

Gets the type data.

[AlsoNotifyFor("Icon")]
public TypeData TypeData { get; }

Property Value

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.

public void Load(string typeIdentifier, string providerName = null)

Parameters

typeIdentifier string

Identifier of type to load.

providerName string

Provider 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, or providerName 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

typeData TypeData

TypeData to set. Use null to unload type data.

ShowServiceView()

Shows the service window.

public void ShowServiceView()

Events

TypeDataLoaded

Occurs after type data were loaded.

public event EventHandler TypeDataLoaded

Event Type

EventHandler

TypeDataLoading

Occurs when type data are loading.

public event EventHandler<TypeDataLoadingEventArgs> TypeDataLoading

Event Type

EventHandler<TypeDataLoadingEventArgs>