Table of Contents

Class ServiceViewModel

Namespace
Loehnert.Lisrt.Communication.Visa.ViewModels
Assembly
Loehnert.Lisrt.Communication.Visa.dll

Represents the view model for the service window.

public class ServiceViewModel : 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
ServiceViewModel
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

ServiceViewModel(ILisrtModule)

Initializes a new instance of the ServiceViewModel class.

public ServiceViewModel(ILisrtModule module)

Parameters

module ILisrtModule

The model, VisaModule instance.

Properties

IsConnected

Gets a value indicating whether the connection is open.

public bool IsConnected { get; }

Property Value

bool

QueryCommand

Gets the query command.

public ICommand QueryCommand { get; }

Property Value

ICommand

ReceivedData

Gets the received data.

public string ReceivedData { get; }

Property Value

string

ResourceName

Gets the resource name.

public string ResourceName { get; }

Property Value

string

SendCommand

Gets the send command.

public ICommand SendCommand { get; }

Property Value

ICommand

SendData

Gets or sets the data to send.

public string SendData { get; set; }

Property Value

string