示例#1
0
        public void PrepareUndo(string name, Invocation invocation)
        {
            UndoableAction undoableAction = new UndoableAction(name, invocation);

            if (undoing)
            {
                redoStack.Push(undoableAction);
            }
            else
            {
                undoStack.Push(undoableAction);
            }
            OnNeedsSaveChanged();
        }
 public void PrepareUndo(string name, Invocation invocation)
 {
     UndoableAction undoableAction = new UndoableAction(name, invocation);
     if (undoing)
         redoStack.Push(undoableAction);
     else
         undoStack.Push(undoableAction);
     OnNeedsSaveChanged();
 }