Interface ICommand
- Namespace
- Whim
- Assembly
- Whim.dll
A command is a function with a unique identifier.
public interface ICommand
Properties
Id
The unique identifier. For example, "whim.core.focus_right_window".
string Id { get; }
Property Value
Title
The title of the command. For example, "Focus right window".
string Title { get; }
Property Value
Methods
CanExecute()
Indicates whether the command can currently be executed.
bool CanExecute()
Returns
TryExecute()
Tries to execute the command. If the command is not executable (due to
the condition not being met), false is returned.
bool TryExecute()
Returns
- bool
- True if the command was executed, false otherwise.