Esempio n. 1
0
 public void EndAndExecuteCompoundCommand()
 {
     if (this.currentCompoundCommand != null)
     {
         var oldCompoundCommand = this.currentCompoundCommand;
         this.currentCompoundCommand = null;
         if (oldCompoundCommand.SubCommandCount > 0)
         {
             this.RunCommand(oldCompoundCommand);
         }
     }
 }
Esempio n. 2
0
 public void BeginCompoundCommand <T>() where T : CompoundCommand, new()
 {
     this.currentCompoundCommand = new T();
 }