Class ArubaCommandItemViewModel
Contains logic for an ArubaCommand item.
Implements
Inherited Members
Namespace: Phoenix.Aruba
Assembly: Phoenix.Plugin.Aruba.dll
Syntax
public class ArubaCommandItemViewModel : BindableBase, INotifyPropertyChanged
Constructors
View SourceArubaCommandItemViewModel(ArubaCommand, string)
Initializes a new instance of the ArubaCommandItemViewModel class.
Declaration
public ArubaCommandItemViewModel(ArubaCommand command, string parameters)
Parameters
Type | Name | Description |
---|---|---|
ArubaCommand | command | The associated ArubaCommand. |
string | parameters | The parameters for this ArubaCommand. |
Properties
View SourceCommand
Gets or sets the ArubaCommand associated with this view model.
Declaration
public ArubaCommand Command { get; set; }
Property Value
Type | Description |
---|---|
ArubaCommand |
IsInvalid
Gets a value indicating whether this ArubaCommand is invalid.
Declaration
public bool IsInvalid { get; }
Property Value
Type | Description |
---|---|
bool |
Parameters
Gets or sets the parameter string for the associated ArubaCommand.
Declaration
public string Parameters { get; set; }
Property Value
Type | Description |
---|---|
string |
Methods
View SourceCanExecute(IGameClient)
A wrapper around the ArubaCommands CanExecute method.
Declaration
public bool CanExecute(IGameClient gameClient)
Parameters
Type | Name | Description |
---|---|---|
IGameClient | gameClient | The IGameClient to use. |
Returns
Type | Description |
---|---|
bool | Whether the ArubaCommand can execute. |
ExecuteAsync(IGameClient)
A wrapper around the ArubaCommands Execute method.
Declaration
public Task ExecuteAsync(IGameClient gameClient)
Parameters
Type | Name | Description |
---|---|---|
IGameClient | gameClient | The IGameClient to use. |
Returns
Type | Description |
---|---|
Task | A Task. |