/** * Initialize a new UndoState object with an IUndo object and summary of the undo-able action. */ public UndoState(IUndo target, string msg) { this.target = target; this.message = msg; this.values = target.RecordState(); }
public void Push(IUndo action) { UndoStack.Push(action); RedoStack.Clear(); }