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++; }
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++; }