Class DigitalOutputTreeItemViewModel
- Namespace
- Loehnert.Lisrt.IO.Controls.ViewModels
- Assembly
- Loehnert.Lisrt.IO.dll
Represents a view model for a IDigitalOutputITreeItem.
public class DigitalOutputTreeItemViewModel : ItemViewModel, INotifyPropertyChangedEx, ITreeItem, INotifyPropertyChanged
- Inheritance
-
PropertyChangedBaseDigitalOutputTreeItemViewModel
- Implements
-
INotifyPropertyChangedEx
- Inherited Members
-
PropertyChangedBase.Refresh()PropertyChangedBase.IsNotifyingPropertyChangedBase.PropertyChanged
Constructors
DigitalOutputTreeItemViewModel(IDigitalOutput)
Initializes a new instance of the DigitalOutputTreeItemViewModel class.
public DigitalOutputTreeItemViewModel(IDigitalOutput digitalOutput)
Parameters
digitalOutput
IDigitalOutputThe IDigitalOutput as ILisrtModule.
Properties
Color
Gets or sets the indicator color. Default is Red.
public Color Color { get; set; }
Property Value
Value
Gets a value indicating whether the digital output is on.
public bool Value { get; }