Пример #1
0
 private void pictureBox2_Click(object sender, EventArgs e)
 {
     if (studentDetail == null)
     {
         studentDetail = new studentDetails();
         studentDetail.Show();
     }
     else
     {
         studentDetail.WindowState = FormWindowState.Normal;
         studentDetail.Show();
         studentDetail.Focus();
     }
 }
Пример #2
0
 private void studentDetailToolStripMenuItem_Click(object sender, EventArgs e)
 {
     if (studentDetail == null)
     {
         studentDetail = new studentDetails();
         studentDetail.Show();
     }
     else
     {
         studentDetail.WindowState = FormWindowState.Normal;
         studentDetail.Show();
         studentDetail.Focus();
     }
 }