public void CheckAlarmTriggered() { if (_currentTime.Equate(_alarmTime) && _modeManager.GetMode() == Mode.ALARM_ON) { _alarm.On(); } else { _alarm.Off(); } }
public void DoIncrementHour() { Mode currentMode = _modeManager.GetMode(); if (currentMode == Mode.SET_ALARM) { _timeManager.IncrementAlarmHour(); } else if (currentMode != Mode.SET_ALARM) { _timeManager.IncrementCurrentHour(); } }