Esempio n. 1
0
        static bool CheckAlarmStatus(Alarm[] alarms, DaysOfTheWeak day, int hour)
        {
            bool status = false;

            for (int i = 0; i < alarms.Length; i++)
            {
                if ((alarms[i].day & day) != 0 && (alarms[i].hour == hour))
                {
                    return(true);
                }
            }
            return(status);
        }
Esempio n. 2
0
 public Alarm(DaysOfTheWeak day, int hour)
 {
     this.day  = day;
     this.hour = hour;
 }