Пример #1
0
 private void btnStartNewLesson_Click(object sender, EventArgs e)
 {
     //open StartLessonWindow
     NewLessonDialogWindow nlWindow = new NewLessonDialogWindow(TeacherID);
     nlWindow.FormClosed += ((o,s) =>
         {
             this.Show();
         });
     nlWindow.Owner = this;
     nlWindow.ShowDialog();
 }
Пример #2
0
        private void btnStartNewLesson_Click(object sender, EventArgs e)
        {
            //open StartLessonWindow
            NewLessonDialogWindow nlWindow = new NewLessonDialogWindow(TeacherID);

            nlWindow.FormClosed += ((o, s) =>
            {
                this.Show();
            });
            nlWindow.Owner = this;
            nlWindow.ShowDialog();
        }