Example #1
0
        private void ShowTeacherHours()
        {
            if (_teacherHoursFormOpened)
            {
                TeacherDiciplines.Activate();
                TeacherDiciplines.Focus();
                return;
            }

            TeacherDiciplines = new TeacherHours(Repo);
            _teacherHoursFormOpened = true;
            TeacherDiciplines.Show();
            _teacherHoursFormOpened = false;
        }
Example #2
0
 private void teachersHours_Click(object sender, EventArgs e)
 {
     var teacherHoursForm = new TeacherHours(Repo);
     teacherHoursForm.Show();
 }