/// <summary>
 /// Internal <b>DO</b> action with no error checking
 /// </summary>
 /// <param name="m"></param>
 private void _Do(IMemento <T> m)
 {
     redoStack.Clear();
     undoStack.Push(m);
 }
 /// <summary>
 /// Clear the entire undo and redo stacks.
 /// </summary>
 public void Clear()
 {
     undoStack.Clear();
     redoStack.Clear();
 }
示例#3
0
 /// <summary>
 /// Clear the entire undo and redo stacks
 /// </summary>
 public void Clear()
 {
     _undoStack.Clear();
     _redoStack.Clear();
 }