Esempio n. 1
0
        static void Main(string[] args)
        {
            var lamp   = new Lamp();
            var remote = new RemoteControl(lamp);

            Console.WriteLine(lamp.Description());
            remote.ClickOn();
            Console.WriteLine(lamp.Description());
            remote.ClickOff();
            Console.WriteLine(lamp.Description());
            Console.WriteLine("Press any key to exit...");
            Console.ReadKey(true);
        }