Exemple #1
0
 public void DeleteAlarm()
 {
     currentAlarm = null;
     alarmSystem.AlarmLayoutPanel.Controls.Remove(customAlarmPanel);
     customAlarmPanel.Dispose();
     alarmSystem.EnableSetAlarmButton();
 }
Exemple #2
0
 public void DeleteAlarm(CustomAlarmPanel alarmPanelToDelete)
 {
     alarmLayoutPanel.Controls.Remove(alarmPanelToDelete);
     alarmPanelToDelete.Dispose();
 }