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