IUndoRedoManagerTCompoundDo Method |
Pushes mementos into the undo stack, any time the state of Subject changes.
Namespace: RAYLASE.Marker.UndoRedoAssembly: RAYLASE.Marker.UndoRedo (in RAYLASE.Marker.UndoRedo.dll) Version: 2.19.0
Syntaxvoid CompoundDo(
IList<IMemento<T>> mementos,
string description = "",
Action preRestoreDelegate = null,
Action postRestoreDelegate = null
)
Parameters
- mementos IListIMementoT
- The mementos to be added.
- description String (Optional)
- The description for this memento.
- preRestoreDelegate Action (Optional)
- The delegate to be executed before the whole restore process.
- postRestoreDelegate Action (Optional)
- The delegate to be executed after the whole restore process.
Remarks
This method MUST be properly invoked by programmers right before (preferably) or right after the state of manager is changed.
Whenever Do(IMementoUTP) or Do(IListIMementoUTP) is called, the status of InUndoRedo should aways be checked first. See details at InUndoRedo.
This method causes redo stack to be cleared.
See AlsoReference
InUndoRedo
Undo
Redo