Beispiel #1
0
 public void Undo()
 {
     // loop thru group items backwards
     for (int i = undoItems.Count - 1; i >= 0; i--)
     {
         UndoItem ui = undoItems[i] as UndoItem;
         _undo.Undoing = true;
         ui.Undo();
     }
 }
Beispiel #2
0
        internal void undo()
        {
            UndoItem undoItem = null;

            if (_actions.Count == 0)
            {
                return;
            }

            undoItem = (UndoItem)_actions.Pop();

            _Undoing = true;
            undoItem.Undo();
        }
Beispiel #3
0
 public void Undo()
 {
     if (UndoStack.Count > 0)
     {
         UndoItem item = UndoStack.Pop();
         undo_in_progress = true;
         item.Undo(mainWindow);
         undo_in_progress = false;
     }
     else
     {
         Console.Beep(500, 500);
     }
 }