public override void redo() { for (int i = 0; i < _list.Count; i++) { AbstractCommand cmd = (AbstractCommand)_list[i]; cmd.redo(); } }
public void redoLastUndone() { if (_undoneStack.Count != 0) { AbstractCommand last_undone_cmd = (AbstractCommand)_undoneStack.Pop(); last_undone_cmd.redo(); _doneStack.Push(last_undone_cmd); if (_doneStack.Count == _maxStackSize) { _doneStack = this.reduceStackSize(_doneStack); } setUnReButtonState(); } }