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

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

            command.Execute();

            commands.Add(command);
            current++;
        }