CommandQueueManagerPerformUndoablePeriod Method |
Performs the code func inside an undoable period guarded by the command specified. Use this method if the code to run inside the
undoable period is well known and can be wrapped inside a single func. The func codeToExecuteInPeriodFunc is executed once, all
undo/redo logic is done by undo/redo-ing commands which were ran due to state changes caused by codeToExecuteInPeriodFunc.
If you want to run a command again during redo, you should enqueue and run a normal command instead of using this method.
To create an undoable period, you can also call BeginUndoablePeriod and EndUndoablePeriod.
Namespace:
SD.Tools.Algorithmia.Commands
Assembly:
SD.Tools.Algorithmia (in SD.Tools.Algorithmia.dll) Version: 1.3.0.0 (1.3.17.0314)
Syntax public void PerformUndoablePeriod(
UndoablePeriodCommand cmd,
Action codeToExecuteInPeriodFunc
)
Public Sub PerformUndoablePeriod (
cmd As UndoablePeriodCommand,
codeToExecuteInPeriodFunc As Action
)
Parameters
- cmd
- Type: SD.Tools.Algorithmia.CommandsUndoablePeriodCommand
The CMD. - codeToExecuteInPeriodFunc
- Type: SystemAction
The code to execute in period func.
See Also