Ejemplo n.º 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();
        }
Ejemplo n.º 2
0
 public void PrepareUndo(string name, Invocation invocation)
 {
     UndoableAction undoableAction = new UndoableAction(name, invocation);
     if (undoing)
         redoStack.Push(undoableAction);
     else
         undoStack.Push(undoableAction);
     OnNeedsSaveChanged();
 }