示例#1
0
        public void Compute(char @operator, int operand)
        {
            Command command = new CalculatorCommand(this.calculator, @operator, operand);
            command.Execute();

            this.commands.Add(command);
            this.currentCommandIndex++;
        }
示例#2
0
        public void Compute(char @operator, int operand)
        {
            Command command = new CalculatorCommand(this.calculator, @operator, operand);

            command.Execute();

            this.commands.Add(command);
            this.currentCommandIndex++;
        }