private void EmptyAlarmFields() { mainControl.AddEditLabelBox.Text = ""; timeController.SetDisplayTime(0, 0); mainControl.RepeatCheckbox.IsChecked = false; weekdayControl.SetActiveDays(new List <DayOfWeek>()); weekdayControl.SetVisibleState(Visibility.Collapsed); string firstAudioFile = ""; foreach (KeyValuePair <string, string> pair in audioFiles) { firstAudioFile = pair.Key; break; } audioFileController.SetSelected(firstAudioFile); }
/// <summary> /// when options panel is opened, it calles GUIController, who sets this in order to populate the custom time UI with the current time. /// </summary> public void SetCustomTime_displayedInOptions(int hour, int minute) { timeController.SetDisplayTime(hour, minute); }