Beispiel #1
0
 public void Undo()
 {
     if (commandStack.Count > 0)
     {
         UndoableCommand cmd = (UndoableCommand)commandStack.Pop();
         cmd.Undo();
     }
 }
Beispiel #2
0
 public void push(UndoableCommand command)
 {
     commands.Push(command);
 }