Class GroupControlModel
Device control view model.
Namespace: Phoenix.DeviceManagement
Assembly: Phoenix.dll
Syntax
public class GroupControlModel : DeviceListNodeViewModel
Constructors
View SourceGroupControlModel(String, Guid, DeviceManagementViewModel, IDeviceManager)
Initializes a new instance of the GroupControlModel class.
Declaration
public GroupControlModel(string name, Guid id, DeviceManagementViewModel parentModel, IDeviceManager deviceManager)
Parameters
Type | Name | Description |
---|---|---|
System.String | name | The group's name. |
System.Guid | id | The group's id. |
DeviceManagementViewModel | parentModel | The group's parent model. |
IDeviceManager | deviceManager |
Properties
View SourceAcceptNameEdit
Gets the command to accept editing group name
Declaration
public DelegateCommand<string> AcceptNameEdit { get; }
Property Value
Type | Description |
---|---|
DelegateCommand<System.String> |
BeginNameEdit
Gets the command to begin editing the group name
Declaration
public DelegateCommand BeginNameEdit { get; }
Property Value
Type | Description |
---|---|
DelegateCommand |
CancelNameEdit
Gets the command to cancel editing group name
Declaration
public DelegateCommand CancelNameEdit { get; }
Property Value
Type | Description |
---|---|
DelegateCommand |
Id
Gets the id for the group.
Declaration
public Guid Id { get; }
Property Value
Type | Description |
---|---|
System.Guid |
IsEditingName
Gets or sets a value indicating whether the group's 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. True for this class.
Declaration
public override bool IsGroup { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
Overrides
View SourceIsNameReadOnly
Gets a value indicating whether the group's name is not being edited.
Declaration
public bool IsNameReadOnly { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
Name
Gets the name of the group.
Declaration
public string Name { get; }
Property Value
Type | Description |
---|---|
System.String |
ParentModel
Gets the parent model for the group.
Declaration
public DeviceManagementViewModel ParentModel { get; }
Property Value
Type | Description |
---|---|
DeviceManagementViewModel |
Methods
View SourceSetName(String)
Sets the name of the group.
Declaration
public void SetName(string newName)
Parameters
Type | Name | Description |
---|---|---|
System.String | newName | The new group name. |