static void Main(string[] args)
 {
     CustomTimer customTimer=new CustomTimer();
     MicrowaveAlarm microwaveAlarm=new MicrowaveAlarm(customTimer);
     HandWatchAlarm handWatchAlarm=new HandWatchAlarm(customTimer);
     customTimer.StartTimer(5);
     Thread.Sleep(5500);
     microwaveAlarm.Unregister(customTimer);
     customTimer.StartTimer(3);
     Thread.Sleep(3500);
     handWatchAlarm.Unregister(customTimer);
     Console.ReadKey();
 }
        static void Main(string[] args)
        {
            CustomTimer    customTimer    = new CustomTimer();
            MicrowaveAlarm microwaveAlarm = new MicrowaveAlarm(customTimer);
            HandWatchAlarm handWatchAlarm = new HandWatchAlarm(customTimer);

            customTimer.StartTimer(5);
            Thread.Sleep(5500);
            microwaveAlarm.Unregister(customTimer);
            customTimer.StartTimer(3);
            Thread.Sleep(3500);
            handWatchAlarm.Unregister(customTimer);
            Console.ReadKey();
        }