Ejemplo n.º 1
0
        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();
            }
        }
Ejemplo n.º 2
0
 private void SelectionApplyButton_Click(object sender, EventArgs e)
 {
     TimetableControl.ResetLectureTimes();
     TimetableControl.AddSubjectToSelectedCells((Subject)SubjectCombobox.SelectedItem);
 }
Ejemplo n.º 3
0
 private void ResetButton_Click(object sender, EventArgs e)
 {
     TimetableControl.ResetLectureTimes();
 }
Ejemplo n.º 4
0
 private void SetAfterInsert()
 {
     deep_copy = new SubjectSelection(selection);
     selection = new SubjectSelection();
     TimetableControl.ResetLectureTimes();
 }
Ejemplo n.º 5
0
 private void resetAllToolStripMenuItem_Click(object sender, EventArgs e)
 {
     TimetableControl.ResetLectureTimes();
 }