IUndoRedoManager<T>.Do(IList<IMemento<T>>) 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.20.0
Syntaxvoid Do(
IList<IMemento<T>> mementos
)
Parameters
- mementos IList<IMemento<T>>
- The mementos to be added.
Remarks
This method MUST be properly invoked by programmers right before (preferably) or right after the state of manager is changed.
Whenever Do(IMemento<UTP> ) or Do(IList<IMemento<UTP> > ) 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()