Method | Description | |
---|---|---|
CanExecute ( ) : bool |
For most Actions, CanExecute is true when ExecuteCount = 0 (not yet executed) and false when ExecuteCount = 1 (already executed once)
|
|
CanUnExecute ( ) : bool |
|
|
Execute ( ) : void |
Apply changes encapsulated by this object. ExecuteCount++ |
|
TryToMerge ( IAction followingAction ) : bool |
If the last action can be joined with the followingAction, the following action isn't added to the Undo stack, but rather mixed together with the current one.
|
|
UnExecute ( ) : void |
Undo changes made by a previous Execute call. ExecuteCount-- |
Method | Description | |
---|---|---|
ExecuteCore ( ) : void |
Override execute core to provide your logic that actually performs the action
|
|
UnExecuteCore ( ) : void |
Override this to provide the logic that undoes the action
|
public TryToMerge ( IAction followingAction ) : bool | ||
followingAction | IAction | |
return | bool |