コード例 #1
0
ファイル: Command.cs プロジェクト: rohits2712/DesignPatterns
        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++;
        }