예제 #1
0
        private static void CommandTest()
        {
            Console.WriteLine("---------------------------");
            Console.WriteLine("CommandTest");
            var tv      = new TV();
            var command = new TVOnCommand(tv);
            var pult    = new RemoteControl();

            pult.SetCommand(command);
            pult.ClickExecute();
            pult.ClickUndo();
            Console.WriteLine("---------------------------");
        }