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); } }
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); }