Beispiel #1
0
        public void Compute(char operatorKey, int operand)
        {
            //Create commmand and execute
            Command command = new CalculatorCommand(_calculator, operatorKey, operand);

            command.Execute();
            //Add command to undo list
            _commands.Add(command);
            _current++;
        }