Class AddNewDeviceViewModel
The view model for the Add New Device window
Inheritance
System.Object
AddNewDeviceViewModel
Namespace: Phoenix.DeviceManagement
Assembly: Phoenix.dll
Syntax
public class AddNewDeviceViewModel : BindableBase
Constructors
View SourceAddNewDeviceViewModel(DeviceManagementViewModel, IDeviceManager)
Initializes a new instance of the AddNewDeviceViewModel class.
Declaration
public AddNewDeviceViewModel(DeviceManagementViewModel parentView, IDeviceManager manager)
Parameters
Type | Name | Description |
---|---|---|
DeviceManagementViewModel | parentView | The view that opened the window. |
IDeviceManager | manager | The device manager |
Properties
View SourceCancelCommand
Gets the command for canceling the adding of a new device.
Declaration
public DelegateCommand CancelCommand { get; }
Property Value
Type | Description |
---|---|
DelegateCommand |
CloseAction
Gets or sets an action that closes the window.
Declaration
public Action CloseAction { get; set; }
Property Value
Type | Description |
---|---|
System.Action |
ConfirmAddCommand
Gets the command for confirming addition of a new device.
Declaration
public DelegateCommand<string> ConfirmAddCommand { get; }
Property Value
Type | Description |
---|---|
DelegateCommand<System.String> |
Factories
Gets the list of device type names.
Declaration
public ObservableCollection<KeyValuePair<string, string>> Factories { get; }
Property Value
Type | Description |
---|---|
System.Collections.ObjectModel.ObservableCollection<System.Collections.Generic.KeyValuePair<System.String, System.String>> |
SelectedFactory
Gets or sets the currently select factory.
Declaration
public KeyValuePair<string, string> SelectedFactory { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.KeyValuePair<System.String, System.String> |