private void uXEditButton_Click(object sender, EventArgs e) { if (uXAlarmContainer.SelectedIndex != -1) { TimeSelectionWindow ts = new TimeSelectionWindow(uXAlarmContainer, uXAlarmContainer.SelectedIndex, controller); ts.Show(); } }
private void uXAddButton_Click(object sender, EventArgs e) { if (controller.Size < 10) { TimeSelectionWindow ts = new TimeSelectionWindow(uXAlarmContainer, controller); ts.Show(); } }