Esempio n. 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();
        }
Esempio n. 2
0
 public EpsonCimemaOnCommand(EpsonCinema epsonSet)
 {
     ec = epsonSet;
 }