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); }
public Alarm(DaysOfTheWeak day, int hour) { this.day = day; this.hour = hour; }