Class DeviceConfigSettingWrapper
DeviceConfigSettingWrapper is a notification object that wrappers a DeviceConfigSetting.
Inheritance
Namespace: Phoenix.DeviceConfiguration
Assembly: Phoenix.DeviceConfiguration.dll
Syntax
public class DeviceConfigSettingWrapper : BindableBase
Constructors
View SourceDeviceConfigSettingWrapper(DeviceConfigSetting, SettingValue)
Initializes a new instance of the DeviceConfigSettingWrapper class.
Declaration
public DeviceConfigSettingWrapper(DeviceConfigSetting setting, SettingValue value)
Parameters
Type | Name | Description |
---|---|---|
DeviceConfigSetting | setting | The DeviceConfigSetting to wrap. |
SettingValue | value | The SettingValue to wrap. |
Properties
View SourceCanCheck
Gets a value indicating whether the setting can be checked.
Declaration
public bool CanCheck { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
CanFix
Gets a value indicating whether the setting can be fixed automatically.
Declaration
public bool CanFix { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
CheckSettingCommand
Gets the command for checking a setting
Declaration
public DelegateCommand CheckSettingCommand { get; }
Property Value
Type | Description |
---|---|
DelegateCommand |
CurrentValue
Gets the current value of this setting.
Declaration
public string CurrentValue { get; }
Property Value
Type | Description |
---|---|
System.String |
ExpectedValue
Gets or sets the expected value of this setting.
Declaration
public string ExpectedValue { get; set; }
Property Value
Type | Description |
---|---|
System.String |
FixSettingCommand
Gets the command for fixing a setting
Declaration
public DelegateCommand FixSettingCommand { get; }
Property Value
Type | Description |
---|---|
DelegateCommand |
HasMessage
Gets a value indicating whether the setting has a message or not.
Declaration
public bool HasMessage { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
HasMultipleValues
Gets a value indicating whether or not multiple values were retrieved for the setting.
Declaration
public bool HasMultipleValues { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
IsChecking
Gets or sets a value indicating whether or not the setting is being checked.
Declaration
public bool IsChecking { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
IsCorrect
Gets a value indicating whether the value is correct.
Declaration
public bool? IsCorrect { get; }
Property Value
Type | Description |
---|---|
System.Nullable<System.Boolean> |
IsFixing
Gets or sets a value indicating whether or not the setting is being fixed.
Declaration
public bool IsFixing { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
IsSelected
Gets or sets a value indicating whether or not the setting is selected in the window.
Declaration
public bool IsSelected { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
LastResults
Gets the last results returned from the setting.
Declaration
public List<KeyValuePair<IDevice, DeviceConfigResult>> LastResults { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.List<System.Collections.Generic.KeyValuePair<IDevice, DeviceConfigResult>> |
LoadExpectedValueCommand
Gets the command for storing the current value in the expected value field.
Declaration
public DelegateCommand LoadExpectedValueCommand { get; }
Property Value
Type | Description |
---|---|
DelegateCommand |
Message
Gets the message on the setting.
Declaration
public string Message { get; }
Property Value
Type | Description |
---|---|
System.String |
Progress
Gets or sets the state of the progress.
Declaration
public string Progress { get; set; }
Property Value
Type | Description |
---|---|
System.String |
SettingName
Gets or sets the setting name.
Declaration
public string SettingName { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Methods
View SourceCheckSetting()
Asynchronously checks the setting.
Declaration
public async Task CheckSetting()
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task | The task running. |
FixSetting()
Asynchronously fixes the setting.
Declaration
public async Task FixSetting()
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task | The task running. |