Table of Contents

Class LisrtModule

Namespace
Loehnert.Lisrt.Modules
Assembly
Loehnert.Lisrt.Modules.dll

Represents a base class for an ILisrtModule implementation.

public abstract class LisrtModule : PropertyChangedBase, INotifyPropertyChangedEx, ILisrtModule, INotifyPropertyChanged
Inheritance
PropertyChangedBase
LisrtModule
Implements
INotifyPropertyChangedEx
Derived
Inherited Members
PropertyChangedBase.Refresh()
PropertyChangedBase.IsNotifying
PropertyChangedBase.PropertyChanged
Extension Methods

Constructors

LisrtModule(string)

Initializes a new instance of the LisrtModule class.

protected LisrtModule(string name)

Parameters

name string

The name for the LisrtModule.

Exceptions

ArgumentNullException

Thrown when name is null or empty.

Properties

Enabled

Gets or sets a value indicating whether the LisrtModule instance is enabled.

[Configuration(false)]
public virtual bool Enabled { get; set; }

Property Value

bool

Icon

Gets an icon which is representative for the module. Default value is null.

public virtual Uri Icon { get; }

Property Value

Uri

Name

Gets the name of the LisrtModule instance.

public virtual string Name { get; }

Property Value

string

Parent

Gets or sets the parent LisrtModule instance.

public virtual ILisrtModule Parent { get; set; }

Property Value

ILisrtModule

Remarks

Returns null if it is root module.

TreeItem

Gets the view model for the module.

public virtual ITreeItem TreeItem { get; }

Property Value

ITreeItem

Methods

ToString()

Returns a string that represents the current object.

public override string ToString()

Returns

string

A string that represents the current object.