public override void doit() { for (int i = 0; i < _list.Count; i++) { AbstractCommand cmd = (AbstractCommand)_list[i]; cmd.doit(); } }
public void doCmd(AbstractCommand cmd) { cmd.doit(); _doneStack.Push(cmd); _undoneStack.Clear(); if (_doneStack.Count == _maxStackSize) { _doneStack = this.reduceStackSize(_doneStack); } setUnReButtonState(); }