Table of Contents

Class ManualOperatingModeBase

Namespace
Loehnert.Lisrt.OperatingMode
Assembly
Loehnert.Lisrt.dll

Abstract base for a manual operating mode.

public abstract class ManualOperatingModeBase : PropertyChangedBase, INotifyPropertyChangedEx, INotifyPropertyChanged, IOperatingMode, IHasKey
Inheritance
PropertyChangedBase
ManualOperatingModeBase
Implements
INotifyPropertyChangedEx
Inherited Members
PropertyChangedBase.Refresh()
PropertyChangedBase.IsNotifying
PropertyChangedBase.PropertyChanged

Constructors

ManualOperatingModeBase()

Initializes a new instance of the ManualOperatingModeBase class.

protected ManualOperatingModeBase()

Properties

Actions

Gets the actions for the operating mode.

public virtual ICollection<IActionViewModel> Actions { get; }

Property Value

ICollection<IActionViewModel>

Description

Gets the localized description for the operating mode.

public virtual ITranslation Description { get; }

Property Value

ITranslation

Icon

Gets the icon.

public virtual Uri Icon { get; }

Property Value

Uri

IsSelectable

Gets or sets a value indicating whether the mode is selectable.

public virtual bool IsSelectable { get; protected set; }

Property Value

bool

IsSpecial

Gets or sets a value indicating whether the mode is a special one.

public bool IsSpecial { get; set; }

Property Value

bool

Remarks

If it is special, it will be just shown in the concealable fly out.

Key

Gets a unique key.

public virtual string Key { get; }

Property Value

string

ManualOperatingModeKey

Gets the default key for the manual operating mode.

public static string ManualOperatingModeKey { get; }

Property Value

string

Methods

CanEnable()

Gets a value indicating whether the mode can be enabled.

public abstract bool CanEnable()

Returns

bool

True if it can be enabled. Otherwise false.

Disable()

Disables the mode.

public abstract void Disable()

Enable()

Enables the mode.

public abstract void Enable()