Beispiel #1
0
 public void ExecuteCommand(DocumentCommand cmd)
 {
     cmd.Execute();
     if (cmd is UndoableCommand)
     {
         commandStack.Push(cmd);
     }
 }
Beispiel #2
0
 public void Redo()
 {
     _redcmd.Execute();
 }
Beispiel #3
0
 public void Undo()
 {
     _undcmd.Execute();
 }
Beispiel #4
0
 public void Display()
 {
     _discmd.Execute();
 }