/// <summary>
        /// sets the controller
        /// </summary>
        /// <param name="ac"></param>
        public void SetAlarmController(AlarmController ac)
        {
            AlarmC = ac;
            AlarmC.ReadFromFile();

            snooze = AlarmC.SnoozeEvent;
            edit   = AlarmC.EditAlarm;
        }
        static void Main()
        {
            /*********************************************************/
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            /********************************************************/


            Form1           f  = new Form1();
            AlarmController ac = new AlarmController(f, f.DisplayAlarms);

            f.SetAlarmController(ac);
            Application.Run(f);
        }