Table of Contents

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
PropertyChangedBase
ViewAware
Screen
DeviceViewModel
Implements
IViewAware
IChild
IScreen
IHaveDisplayName
IActivate
IDeactivate
IGuardClose
IClose
INotifyPropertyChangedEx
Inherited Members
Screen.OnInitialize()
Screen.OnActivate()
Screen.Parent
Screen.DisplayName
Screen.IsActive
Screen.IsInitialized
Screen.Activated
Screen.AttemptingDeactivation
Screen.Deactivated
ViewAware.DefaultContext
ViewAware.Views
ViewAware.ViewAttached
PropertyChangedBase.Refresh()
PropertyChangedBase.IsNotifying
PropertyChangedBase.PropertyChanged

Constructors

DeviceViewModel(Device)

Initializes a new instance of the DeviceViewModel class.

public DeviceViewModel(Device device)

Parameters

device Device

Device model.

Exceptions

ArgumentNullException

Thrown when device is null.

Properties

Channels

Gets the channels.

public IEnumerable<ILisrtModule> Channels { get; }

Property Value

IEnumerable<ILisrtModule>

IsConnected

Gets a value indicating whether the Device is connected.

public bool IsConnected { get; }

Property Value

bool

Serial

Gets the serial from the Device.

public string Serial { get; }

Property Value

string