Class LisrtModule
Represents a base class for an ILisrtModule implementation.
Inheritance
Caliburn.Micro.PropertyChangedBase
LisrtModule
Implements
Caliburn.Micro.INotifyPropertyChangedEx
System.ComponentModel.INotifyPropertyChanged
System.ComponentModel.INotifyPropertyChanged
Inherited Members
Caliburn.Micro.PropertyChangedBase.Refresh()
Caliburn.Micro.PropertyChangedBase.NotifyOfPropertyChange(System.String)
Caliburn.Micro.PropertyChangedBase.NotifyOfPropertyChange<TProperty>(System.Linq.Expressions.Expression<System.Func<TProperty>>)
Caliburn.Micro.PropertyChangedBase.OnPropertyChanged(System.ComponentModel.PropertyChangedEventArgs)
Caliburn.Micro.PropertyChangedBase.OnUIThread(System.Action)
Caliburn.Micro.PropertyChangedBase.Set<T>(T, T, System.String)
Caliburn.Micro.PropertyChangedBase.IsNotifying
Caliburn.Micro.PropertyChangedBase.PropertyChanged
Namespace: Loehnert.Lisrt.Modules
Assembly: Loehnert.Lisrt.Modules.dll
Syntax
public abstract class LisrtModule : PropertyChangedBase, INotifyPropertyChangedEx, ILisrtModule, INotifyPropertyChanged
Constructors
LisrtModule(String)
Initializes a new instance of the LisrtModule class.
Declaration
protected LisrtModule(string name)
Parameters
Type | Name | Description |
---|---|---|
String | name | The name for the LisrtModule. |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException | Thrown when |
Properties
Enabled
Gets or sets a value indicating whether the LisrtModule instance is enabled.
Declaration
[Configuration(false)]
public virtual bool Enabled { get; set; }
Property Value
Type | Description |
---|---|
Boolean |
Icon
Gets an icon which is representative for the module. Default value is null.
Declaration
public virtual Uri Icon { get; }
Property Value
Type | Description |
---|---|
Uri |
Name
Gets the name of the LisrtModule instance.
Declaration
public virtual string Name { get; }
Property Value
Type | Description |
---|---|
String |
Parent
Gets or sets the parent LisrtModule instance.
Declaration
public virtual ILisrtModule Parent { get; set; }
Property Value
Type | Description |
---|---|
ILisrtModule |
Remarks
Returns null if it is root module.
TreeItem
Gets the view model for the module.
Declaration
public virtual ITreeItem TreeItem { get; }
Property Value
Type | Description |
---|---|
ITreeItem |
Methods
ToString()
Returns a string that represents the current object.
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
String | A string that represents the current object. |
Implements
Caliburn.Micro.INotifyPropertyChangedEx
System.ComponentModel.INotifyPropertyChanged
System.ComponentModel.INotifyPropertyChanged