示例#1
0
 public override void doit()
 {
     for (int i = 0; i < _list.Count; i++)
     {
         AbstractCommand cmd = (AbstractCommand)_list[i];
         cmd.doit();
     }
 }
示例#2
0
        public void doCmd(AbstractCommand cmd)
        {
            cmd.doit();
            _doneStack.Push(cmd);
            _undoneStack.Clear();

            if (_doneStack.Count == _maxStackSize)
            {
                _doneStack = this.reduceStackSize(_doneStack);
            }

            setUnReButtonState();
        }