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
-
PropertyChangedBaseViewAwareScreenServiceViewModel
- Implements
-
IViewAwareIChildIScreenIHaveDisplayNameIActivateIDeactivateIGuardCloseICloseINotifyPropertyChangedEx
- Inherited Members
-
Screen.OnInitialize()Screen.OnActivate()Screen.ParentScreen.DisplayNameScreen.IsActiveScreen.IsInitializedScreen.ActivatedScreen.AttemptingDeactivationScreen.DeactivatedViewAware.DefaultContextViewAware.ViewsViewAware.ViewAttachedPropertyChangedBase.Refresh()PropertyChangedBase.IsNotifyingPropertyChangedBase.PropertyChanged
Constructors
ServiceViewModel(PowerSupplyModuleBase)
Initializes a new instance of the ServiceViewModel class.
public ServiceViewModel(PowerSupplyModuleBase powerSupplyModule)
Parameters
powerSupplyModule
PowerSupplyModuleBaseThe supply module instance.
Properties
CurrentStringFormat
Gets the format for the current value.
public virtual string CurrentStringFormat { get; }
Property Value
Error
Gets an error message indicating what is wrong with this object.
public string Error { get; }
Property Value
HardwareIdentification
Gets the identification string.
public string HardwareIdentification { get; }
Property Value
IsMonitoringPowerSupply
Gets a value indicating whether the power supply has monitoring functions.
public bool IsMonitoringPowerSupply { get; }
Property Value
this[string]
Validates if the SetCurrentValue and SetVoltageValue is in range.
public string this[string columnName] { get; }
Parameters
columnName
stringThe name of the changed variable.
Property Value
- string
An error text, validation fails.
MaxCurrentValue
Gets the MaximumCurrent.
public double MaxCurrentValue { get; }
Property Value
MaxVoltageValue
Gets the MaximumVoltage.
public double MaxVoltageValue { get; }
Property Value
MeasureCurrentCommand
Gets the command to measure the current.
public ICommand MeasureCurrentCommand { get; }
Property Value
MeasureVoltageCommand
Gets the command to measure the voltage.
public ICommand MeasureVoltageCommand { get; }
Property Value
MeasuredCurrent
Gets the measured current in ampere.
public double MeasuredCurrent { get; }
Property Value
MeasuredVoltage
Gets the measured current in volt.
public double MeasuredVoltage { get; }
Property Value
OutputIsEnabled
Gets or sets a value indicating whether the OutputIsEnabled is enabled.
public bool OutputIsEnabled { get; set; }
Property Value
SetCurrentCommand
Gets the command for SetCurrent(double).
public ICommand SetCurrentCommand { get; }
Property Value
SetCurrentValue
Gets or sets the temporary current.
public double SetCurrentValue { get; set; }
Property Value
Remarks
Sets after validation and by SetCurrent(double).
SetVoltageCommand
Gets the command for SetVoltage(double).
public ICommand SetVoltageCommand { get; }
Property Value
SetVoltageValue
Gets or sets the temporary voltage.
public double SetVoltageValue { get; set; }
Property Value
Remarks
Sets after validation and by SetVoltage(double).
SetpointCurrentValue
Gets the SetpointCurrent.
public double SetpointCurrentValue { get; }
Property Value
SetpointVoltageValue
Gets the SetpointVoltage.
public double SetpointVoltageValue { get; }
Property Value
VoltageStringFormat
Gets the format for the current value.
public virtual string VoltageStringFormat { get; }