private void ShowLessonListByTfd() { if (_lessonsTfdFormOpened) { LessonsByTfd.Activate(); LessonsByTfd.Focus(); return; } LessonsByTfd = new LessonListByTfd(Repo); _lessonsTfdFormOpened = true; LessonsByTfd.Show(); _lessonsTfdFormOpened = false; }
private void ByMonthView_CellDoubleClick(object sender, DataGridViewCellEventArgs e) { if (e.RowIndex == -1) { return; } var tfdId = ((List<TfdItemByMonth>)ByMonthView.DataSource)[e.RowIndex].TfdId; var lessonsByTfd = new LessonListByTfd(_repo, tfdId); lessonsByTfd.Show(); }
private void LessonListByTFD_Click(object sender, EventArgs e) { var lessonListByTfdForm = new LessonListByTfd(Repo); lessonListByTfdForm.Show(); }