Ejemplo n.º 1
0
 public void Do(CommandInvoker commandInvoker)
 {
     while (this.stack_0.Count > 0)
     {
         ICommand command = this.stack_0.Pop();
         this.stack_1.Push(command);
         commandInvoker.Do(command);
     }
 }
Ejemplo n.º 2
0
        public void DoSingle(CommandInvoker commandInvoker)
        {
            if (this.stack_0.Count <= 0)
            {
                return;
            }
            ICommand command = this.stack_0.Pop();

            this.stack_1.Push(command);
            commandInvoker.Do(command);
        }