Microscopic Traffic Simulator
|
Command class for binding UI commands with view models. More...
Public Member Functions | |
RelayCommand (Action< object > execute) | |
Creates a new command that can always execute. More... | |
RelayCommand (Action< object > execute, Predicate< object > canExecute) | |
Creates a new command. More... | |
bool | CanExecute (object parameter) |
Method for getting if command is possible to run. More... | |
virtual void | Execute (object parameter) |
Execute action More... | |
Properties | |
EventHandler | CanExecuteChanged |
For connecting with Command Manager More... | |
Command class for binding UI commands with view models.
Definition at line 10 of file RelayCommand.cs.
Microscopic_Traffic_Simulator.RelayCommand.RelayCommand | ( | Action< object > | execute | ) |
Creates a new command that can always execute.
execute | The execution logic. |
Definition at line 26 of file RelayCommand.cs.
Microscopic_Traffic_Simulator.RelayCommand.RelayCommand | ( | Action< object > | execute, |
Predicate< object > | canExecute | ||
) |
Creates a new command.
execute | The execution logic. |
canExecute | The execution status logic. |
Definition at line 33 of file RelayCommand.cs.
bool Microscopic_Traffic_Simulator.RelayCommand.CanExecute | ( | object | parameter | ) |
Method for getting if command is possible to run.
parameter | Parameter of type object |
Definition at line 48 of file RelayCommand.cs.
|
virtual |
Execute action
parameter | Parameter of action |
Reimplemented in Microscopic_Traffic_Simulator.ObservableRelayCommand.
Definition at line 66 of file RelayCommand.cs.
|
addremove |
For connecting with Command Manager
Definition at line 57 of file RelayCommand.cs.