Beispiel #1
0
 public void Redo()
 {
     if (HistoryRedo.Count > 0)
     {
         ArchitectCommand command = HistoryRedo.Pop();
         command.Do();
         History.Push(command);
     }
 }
Beispiel #2
0
 public void Undo()
 {
     if (History.Count > 0)
     {
         ArchitectCommand bc = History.Pop();
         bc.Undo();
         HistoryRedo.Push(bc);
     }
 }