Пример #1
0
 private void button1_Click(object sender, EventArgs e)
 {
     if (frmCourse == null)
     {
         frmCourse             = new frmCourseNew();
         frmCourse.MdiParent   = this.MdiParent;
         frmCourse.Dock        = DockStyle.Fill;
         frmCourse.FormClosed += new FormClosedEventHandler(coursenew_FormClosed);
         frmCourse.Show();
     }
     else
     {
         frmCourse.Activate();
     }
 }
Пример #2
0
 private void coursenew_FormClosed(object sender, EventArgs e)
 {
     frmCourse = null;
 }