示例#1
0
        static void Main(string[] args)
        {
            Pult pult = new Pult();
            TV   tv   = new TV();

            pult.SetCommand(new TVOnCommand(tv));
            pult.PressButton();
            pult.PressUndo();

            EpsonCinema ec = new EpsonCinema();

            pult.SetCommand(new EpsonCimemaOnCommand(ec));
            pult.PressButton();
            pult.PressUndo();

            Console.Read();
        }
示例#2
0
 public EpsonCimemaOnCommand(EpsonCinema epsonSet)
 {
     ec = epsonSet;
 }