Class DeviceViewModel
- Namespace
- Loehnert.Lisrt.Hbm.ViewModels
- Assembly
- Loehnert.Lisrt.Hbm.dll
Represents a view model for a Device.
[Export]
public class DeviceViewModel : ServiceViewModelBase, IViewAware, IChild, IDocument, ILayoutItem, IScreen, IHaveDisplayName, IActivate, IDeactivate, IGuardClose, IClose, INotifyPropertyChangedEx, INotifyPropertyChanged, ICommandHandler<UndoCommandDefinition>, ICommandHandler<RedoCommandDefinition>, ICommandHandler<SaveFileCommandDefinition>, ICommandHandler<SaveFileAsCommandDefinition>, ICommandHandler
- Inheritance
-
PropertyChangedBaseViewAwareScreenDeviceViewModel
- Implements
-
IViewAwareIChildIScreenIHaveDisplayNameIActivateIDeactivateIGuardCloseICloseINotifyPropertyChangedEx
- Inherited Members
-
Screen.OnInitialize()Screen.OnActivate()Screen.ParentScreen.DisplayNameScreen.IsActiveScreen.IsInitializedScreen.ActivatedScreen.AttemptingDeactivationScreen.DeactivatedViewAware.DefaultContextViewAware.ViewsViewAware.ViewAttachedPropertyChangedBase.Refresh()PropertyChangedBase.IsNotifyingPropertyChangedBase.PropertyChanged
Constructors
DeviceViewModel(Device)
Initializes a new instance of the DeviceViewModel class.
public DeviceViewModel(Device device)
Parameters
device
DeviceDevice model.
Exceptions
- ArgumentNullException
Thrown when
device
is null.
Properties
Channels
Gets the channels.
public IEnumerable<ILisrtModule> Channels { get; }
Property Value
IsConnected
Gets a value indicating whether the Device is connected.
public bool IsConnected { get; }
Property Value
Serial
Gets the serial from the Device.
public string Serial { get; }