Exemplo n.º 1
0
 public void ExecuteCommand(DocumentCommand cmd)
 {
     cmd.Execute();
     if (cmd is UndoableCommand)
     {
         commandStack.Push(cmd);
     }
 }
Exemplo n.º 2
0
 public DocumentInvoker(DocumentCommand discmd, DocumentCommand undcmd, DocumentCommand redcmd)
 {
     this._discmd = discmd;
     this._undcmd = undcmd;
     this._redcmd = redcmd;
 }