Show / Hide Table of Contents

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 Source

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

CancelCommand

Gets the command for canceling the adding of a new device.

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

CloseAction

Gets or sets an action that closes the window.

Declaration
public Action CloseAction { get; set; }
Property Value
Type Description
System.Action
View Source

ConfirmAddCommand

Gets the command for confirming addition of a new device.

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

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

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>
  • View Source
In This Article
Back to top Generated by DocFX