IUndoRedoManagerTDo(IMementoT) Method |
Pushes an memento 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 Do(
IMemento<T> memento
)
Parameters
- memento IMementoT
- The memento 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(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