Exemple #1
0
        static void Main(string[] args)
        {
            Pult pult = new Pult();
            TV tv = new TV();
            pult.SetCommand(new TVOnCommand(tv));
            pult.PressButton();
            pult.PressUndo();

            Console.Read();
        }
 public TVOnCommand(TV tvSet)
 {
     tv = tvSet;
 }