Table of Contents

Class ServiceViewModel

Namespace
Loehnert.Lisrt.PowerSupply.ViewModels
Assembly
Loehnert.Lisrt.PowerSupply.dll

Represents the view model for the ServiceView of the PowerSupplyModuleBase.

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, IDataErrorInfo
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(PowerSupplyModuleBase)

Initializes a new instance of the ServiceViewModel class.

public ServiceViewModel(PowerSupplyModuleBase powerSupplyModule)

Parameters

powerSupplyModule PowerSupplyModuleBase

The supply module instance.

Properties

CurrentStringFormat

Gets the format for the current value.

public virtual string CurrentStringFormat { get; }

Property Value

string

Error

Gets an error message indicating what is wrong with this object.

public string Error { get; }

Property Value

string

HardwareIdentification

Gets the identification string.

public string HardwareIdentification { get; }

Property Value

string

IsMonitoringPowerSupply

Gets a value indicating whether the power supply has monitoring functions.

public bool IsMonitoringPowerSupply { get; }

Property Value

bool

this[string]

Validates if the SetCurrentValue and SetVoltageValue is in range.

public string this[string columnName] { get; }

Parameters

columnName string

The name of the changed variable.

Property Value

string

An error text, validation fails.

MaxCurrentValue

Gets the MaximumCurrent.

public double MaxCurrentValue { get; }

Property Value

double

MaxVoltageValue

Gets the MaximumVoltage.

public double MaxVoltageValue { get; }

Property Value

double

MeasureCurrentCommand

Gets the command to measure the current.

public ICommand MeasureCurrentCommand { get; }

Property Value

ICommand

MeasureVoltageCommand

Gets the command to measure the voltage.

public ICommand MeasureVoltageCommand { get; }

Property Value

ICommand

MeasuredCurrent

Gets the measured current in ampere.

public double MeasuredCurrent { get; }

Property Value

double

MeasuredVoltage

Gets the measured current in volt.

public double MeasuredVoltage { get; }

Property Value

double

OutputIsEnabled

Gets or sets a value indicating whether the OutputIsEnabled is enabled.

public bool OutputIsEnabled { get; set; }

Property Value

bool

SetCurrentCommand

Gets the command for SetCurrent(double).

public ICommand SetCurrentCommand { get; }

Property Value

ICommand

SetCurrentValue

Gets or sets the temporary current.

public double SetCurrentValue { get; set; }

Property Value

double

Remarks

Sets after validation and by SetCurrent(double).

SetVoltageCommand

Gets the command for SetVoltage(double).

public ICommand SetVoltageCommand { get; }

Property Value

ICommand

SetVoltageValue

Gets or sets the temporary voltage.

public double SetVoltageValue { get; set; }

Property Value

double

Remarks

Sets after validation and by SetVoltage(double).

SetpointCurrentValue

Gets the SetpointCurrent.

public double SetpointCurrentValue { get; }

Property Value

double

SetpointVoltageValue

Gets the SetpointVoltage.

public double SetpointVoltageValue { get; }

Property Value

double

VoltageStringFormat

Gets the format for the current value.

public virtual string VoltageStringFormat { get; }

Property Value

string