Class DeviceControlModel
Device control view model.
Namespace: Phoenix.DeviceManagement
Assembly: Phoenix.dll
Syntax
public class DeviceControlModel : DeviceListNodeViewModel
Constructors
View SourceDeviceControlModel(IDevice, IPhoenixLogger, IEventAggregator, IDeviceManager, IDeviceConfigManager)
Initializes a new instance of the DeviceControlModel class.
Declaration
public DeviceControlModel(IDevice device, IPhoenixLogger logger, IEventAggregator events, IDeviceManager deviceManager, IDeviceConfigManager deviceConfigManager)
Parameters
Type | Name | Description |
---|---|---|
IDevice | device | The device we are binding to. |
IPhoenixLogger | logger | |
IEventAggregator | events | |
IDeviceManager | deviceManager | |
IDeviceConfigManager | deviceConfigManager |
Properties
View SourceAcceptNameEdit
Gets the command to accept editing device name
Declaration
public DelegateCommand<string> AcceptNameEdit { get; }
Property Value
Type | Description |
---|---|
DelegateCommand<System.String> |
CancelNameEdit
Gets the command to cancel editing device name
Declaration
public DelegateCommand CancelNameEdit { get; }
Property Value
Type | Description |
---|---|
DelegateCommand |
ConnectionStatus
Gets a value indicating the connection status of the device.
Declaration
public DeviceConnectionStatus ConnectionStatus { get; }
Property Value
Type | Description |
---|---|
DeviceConnectionStatus |
Device
Gets the backing device object.
Declaration
public IDevice Device { get; }
Property Value
Type | Description |
---|---|
IDevice |
DeviceConfigEnlisted
Gets a value indicating whether or not the device has an enlisted configuration.
Declaration
public bool DeviceConfigEnlisted { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
DeviceConfigIconUri
Gets the device config icon Uri.
Declaration
public Uri DeviceConfigIconUri { get; }
Property Value
Type | Description |
---|---|
System.Uri |
DeviceConfigStatus
Gets a value indicating the status of the enlisted device config.
Declaration
public DeviceConfigurationStatus DeviceConfigStatus { get; }
Property Value
Type | Description |
---|---|
DeviceConfigurationStatus |
DeviceConfigStatusMessage
Gets a string that represents the status for the device configuration.
Declaration
public string DeviceConfigStatusMessage { get; }
Property Value
Type | Description |
---|---|
System.String |
DeviceConfigToolTipLabel
Gets a string that is the label for the device config in the tooltip.
Declaration
public string DeviceConfigToolTipLabel { get; }
Property Value
Type | Description |
---|---|
System.String |
DeviceStatusText
Gets the device status text to display in tooltip.
Declaration
public string DeviceStatusText { get; }
Property Value
Type | Description |
---|---|
System.String |
DeviceType
Gets the type of the device.
Declaration
public string DeviceType { get; }
Property Value
Type | Description |
---|---|
System.String |
IconUri
Gets a value indicating the resource URI for the device icon.
Declaration
public Uri IconUri { get; }
Property Value
Type | Description |
---|---|
System.Uri |
IPAddress
Gets the IP Address of the device.
Declaration
public IPAddress IPAddress { get; }
Property Value
Type | Description |
---|---|
System.Net.IPAddress |
IsEditingName
Gets or sets a value indicating whether the device name is being edited.
Declaration
public bool IsEditingName { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
IsGroup
Gets a value indicating whether this object represents a group. False for devices.
Declaration
public override bool IsGroup { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
Overrides
View SourceIsNameReadOnly
Gets a value indicating whether the name is currently read-only
Declaration
public bool IsNameReadOnly { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
Name
Gets the name of the device.
Declaration
public string Name { get; }
Property Value
Type | Description |
---|---|
System.String |
Methods
View SourceConnect()
Connects to the device.
Declaration
public void Connect()
NotifyDeviceRename()
Notifies the device control that the underlying device name has changed.
Declaration
public void NotifyDeviceRename()