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