private void SelectionDeclineButton_Click(object sender, EventArgs e) { if (New) //reset { //reset SetSelection(new SubjectSelection()); //reset all lecturers for (int i = 0; i < LecturersGridView.Rows.Count; ++i) { if (LecturersGridView["Select", i].Value != null && (bool)LecturersGridView["Select", i].Value) { LecturersGridView["Select", i].Value = false; } } checked_lecturers_id.Clear(); TimetableControl.ResetLectureTimes(); } else if (CustomMessages.YesNoDelete(this)) { Deleted = controller.Delete(selection); Close(); } }
private void SelectionApplyButton_Click(object sender, EventArgs e) { TimetableControl.ResetLectureTimes(); TimetableControl.AddSubjectToSelectedCells((Subject)SubjectCombobox.SelectedItem); }
private void ResetButton_Click(object sender, EventArgs e) { TimetableControl.ResetLectureTimes(); }
private void SetAfterInsert() { deep_copy = new SubjectSelection(selection); selection = new SubjectSelection(); TimetableControl.ResetLectureTimes(); }
private void resetAllToolStripMenuItem_Click(object sender, EventArgs e) { TimetableControl.ResetLectureTimes(); }