Table of Contents

Class OperatingModeViewModel

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

View Model for a IOperatingMode with IOperatingModeManager.

public class OperatingModeViewModel : PropertyChangedBase, INotifyPropertyChangedEx, INotifyPropertyChanged
Inheritance
PropertyChangedBase
OperatingModeViewModel
Implements
INotifyPropertyChangedEx
Inherited Members
PropertyChangedBase.Refresh()
PropertyChangedBase.IsNotifying
PropertyChangedBase.PropertyChanged

Constructors

OperatingModeViewModel(IOperatingMode, IOperatingModeManager)

Initializes a new instance of the OperatingModeViewModel class.

public OperatingModeViewModel(IOperatingMode mode, IOperatingModeManager modeManager)

Parameters

mode IOperatingMode

Operating mode for the view model.

modeManager IOperatingModeManager

Operating mode manager for the view model.

Properties

Description

Gets the localizable description.

public string Description { get; }

Property Value

string

IsActivating

Gets a value indicating whether the operating mode is activating.

public bool IsActivating { get; }

Property Value

bool

IsActive

Gets a value indicating whether the operating mode is active.

public bool IsActive { get; }

Property Value

bool

OperatingMode

Gets the operating mode.

public IOperatingMode OperatingMode { get; }

Property Value

IOperatingMode

SetOperatingMode

Gets the async, relay command with exception handling for set operating mode.

public IAsyncCommand SetOperatingMode { get; }

Property Value

IAsyncCommand