Exemplo n.º 1
0
 private void tìmKiếmTheoVùngPhânBốToolStripMenuItem_Click(object sender, EventArgs e)
 {
     foreach (Form form in Application.OpenForms)
     {
         if (form.GetType() == typeof(frmTKTV))
         {
             form.Close();
             break;
         }
     }
     if ((Application.OpenForms["frmTKTV"] as frmTKTV) == null)
     {
         frmTKTV frmTKSVHmn = new frmTKTV();
         frmTKSVHmn.Show();
     }
 }
Exemplo n.º 2
0
 private void pictureBox3_Click(object sender, EventArgs e)
 {
     foreach (Form form in Application.OpenForms)
     {
         if (form.GetType() == typeof(frmTKTV))
         {
             form.Close();
             break;
         }
     }
     if ((Application.OpenForms["frmTKTV"] as frmTKTV) == null)
     {
         frmTKTV frmTKTVmn = new frmTKTV();
         frmTKTVmn.FormClosed += FrmTKSVHmn_FormClosed;
         frmTKTVmn.Show();
     }
 }