Exemple #1
0
        private void ShowTeacherLessons()
        {
            if (_teacherLessonsFormOpened)
            {
                TeacherLessons.Activate();
                TeacherLessons.Focus();
                return;
            }

            TeacherLessons = new LessonListByTeacher(Repo);
            _teacherLessonsFormOpened = true;
            TeacherLessons.Show();
            _teacherLessonsFormOpened = false;
        }
Exemple #2
0
 private void LessonListByTeacher_Click(object sender, EventArgs e)
 {
     var lessonListByTeacherForm = new LessonListByTeacher(Repo);
     lessonListByTeacherForm.Show();
 }