コード例 #1
0
 public override void redo()
 {
     for (int i = 0; i < _list.Count; i++)
     {
         AbstractCommand cmd = (AbstractCommand)_list[i];
         cmd.redo();
     }
 }
コード例 #2
0
        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();
            }
        }