Interface INodeCommand
Provides an extension point for Addins to provide a command that can be executed on navigation Nodes.
Inherited Members
Namespace: Algenta.Colectica.ViewModel.Commands
Assembly: Algenta.Colectica.ViewModel.dll
Syntax
public interface INodeCommand : IGenericCommand
Properties
Result
Gets the result of the command's execution.
Declaration
CommandResult Result { get; }
Property Value
| Type | Description |
|---|---|
| CommandResult | The result of the command. |
Methods
CanEverExecute(Node)
Determines whether this command should be displayed for the specified node.
Declaration
bool CanEverExecute(Node node)
Parameters
| Type | Name | Description |
|---|---|---|
| Node | node | The node for which the command will be displayed or hidden. |
Returns
| Type | Description |
|---|---|
| System.Boolean |
|
Remarks
The value returned from this method determines the Visibility of the command's menu item or button.
CanExecute(Node)
Determines whether this command should be enabled for the specified node.
Declaration
bool CanExecute(Node node)
Parameters
| Type | Name | Description |
|---|---|---|
| Node | node | The node for which the command will be enabled or disabled. |
Returns
| Type | Description |
|---|---|
| System.Boolean |
|
Remarks
The value returned from this method determines the IsEnabled state of the command's menu item or button.
Execute(Node)
Executes the command.
Declaration
void Execute(Node node)
Parameters
| Type | Name | Description |
|---|---|---|
| Node | node | The node on which the command is being executed. |