예제 #1
0
        public void SetAlarmTo(Time setAlarmTime)
        {
            Alarm alarm = new Alarm(setAlarmTime);

            currentAlarm     = alarm;
            customAlarmPanel = new CustomAlarmPanel();
            alarmSystem.AlarmLayoutPanel.Controls.Add(customAlarmPanel);
            customAlarmPanel.SetAlarm(alarm);
            customAlarmPanel.SetAlarmSystem(alarmSystem);
            customAlarmPanel.SetAlarmTimeUI(setAlarmTime);
            alarmSystem.DisableSetAlarmButton();
            alarmSystem.StartTimer();
        }
예제 #2
0
 public void DeleteAlarm(CustomAlarmPanel alarmPanelToDelete)
 {
     alarmLayoutPanel.Controls.Remove(alarmPanelToDelete);
     alarmPanelToDelete.Dispose();
 }