Пример #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++;
        }