Пример #1
0
        private void editToolStripMenuItem_Click(object sender, EventArgs e)
        {
            TimetableInputForm timetableForm = new TimetableInputForm(studentTimetableList[lessonsListBox.SelectedIndex]);

            timetableForm.SaveStudentTimetable += timetableForm_SaveExistingStudentTimetable;
            timetableForm.ShowDialog();
            if (!timetableForm.IsDisposed)
            {
                timetableForm.Dispose();
            }
        }
Пример #2
0
        private void addTimetableButton_Click(object sender, EventArgs e)
        {
            TimetableInputForm timetableForm = new TimetableInputForm(PersonType.Student);

            timetableForm.SaveStudentTimetable += timetableForm_SaveNewStudentTimetable;
            timetableForm.ShowDialog();
            if (!timetableForm.IsDisposed)
            {
                timetableForm.Dispose();
            }
        }