Show / Hide Table of Contents

Class DeviceControlModel

Device control view model.

Inheritance
System.Object
DeviceListNodeViewModel
DeviceControlModel
Inherited Members
DeviceListNodeViewModel.ChildrenGetter
DeviceListNodeViewModel.TreeListChildren
Namespace: Phoenix.DeviceManagement
Assembly: Phoenix.dll
Syntax
public class DeviceControlModel : DeviceListNodeViewModel

Constructors

View Source

DeviceControlModel(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 Source

AcceptNameEdit

Gets the command to accept editing device name

Declaration
public DelegateCommand<string> AcceptNameEdit { get; }
Property Value
Type Description
DelegateCommand<System.String>
View Source

CancelNameEdit

Gets the command to cancel editing device name

Declaration
public DelegateCommand CancelNameEdit { get; }
Property Value
Type Description
DelegateCommand
View Source

ConnectionStatus

Gets a value indicating the connection status of the device.

Declaration
public DeviceConnectionStatus ConnectionStatus { get; }
Property Value
Type Description
DeviceConnectionStatus
View Source

Device

Gets the backing device object.

Declaration
public IDevice Device { get; }
Property Value
Type Description
IDevice
View Source

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
View Source

DeviceConfigIconUri

Gets the device config icon Uri.

Declaration
public Uri DeviceConfigIconUri { get; }
Property Value
Type Description
System.Uri
View Source

DeviceConfigStatus

Gets a value indicating the status of the enlisted device config.

Declaration
public DeviceConfigurationStatus DeviceConfigStatus { get; }
Property Value
Type Description
DeviceConfigurationStatus
View Source

DeviceConfigStatusMessage

Gets a string that represents the status for the device configuration.

Declaration
public string DeviceConfigStatusMessage { get; }
Property Value
Type Description
System.String
View Source

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
View Source

DeviceStatusText

Gets the device status text to display in tooltip.

Declaration
public string DeviceStatusText { get; }
Property Value
Type Description
System.String
View Source

DeviceType

Gets the type of the device.

Declaration
public string DeviceType { get; }
Property Value
Type Description
System.String
View Source

IconUri

Gets a value indicating the resource URI for the device icon.

Declaration
public Uri IconUri { get; }
Property Value
Type Description
System.Uri
View Source

IPAddress

Gets the IP Address of the device.

Declaration
public IPAddress IPAddress { get; }
Property Value
Type Description
System.Net.IPAddress
View Source

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
View Source

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
DeviceListNodeViewModel.IsGroup
View Source

IsNameReadOnly

Gets a value indicating whether the name is currently read-only

Declaration
public bool IsNameReadOnly { get; }
Property Value
Type Description
System.Boolean
View Source

Name

Gets the name of the device.

Declaration
public string Name { get; }
Property Value
Type Description
System.String

Methods

View Source

Connect()

Connects to the device.

Declaration
public void Connect()
View Source

NotifyDeviceRename()

Notifies the device control that the underlying device name has changed.

Declaration
public void NotifyDeviceRename()
  • View Source
In This Article
Back to top Generated by DocFX