示例#1
0
 private void visualizarLoguinToolStripMenuItem_Click(object sender, EventArgs e)
 {
     if (Application.OpenForms.OfType <FrmVisualizarLogin>().Count() > 0)
     {
         Application.OpenForms.OfType <FrmVisualizarLogin>().First().Focus();
     }
     else
     {
         FrmVisualizarLogin VisualizarLogin = new FrmVisualizarLogin();
         VisualizarLogin.MdiParent = this;
         VisualizarLogin.Show();
     }
 }
 private void visualizarLoguinToolStripMenuItem_Click(object sender, EventArgs e)
 {
     if (Application.OpenForms.OfType<FrmVisualizarLogin>().Count() > 0)
     {
         Application.OpenForms.OfType<FrmVisualizarLogin>().First().Focus();
     }
     else
     {
         FrmVisualizarLogin VisualizarLogin = new FrmVisualizarLogin();
         VisualizarLogin.MdiParent = this;
         VisualizarLogin.Show();
     }
 }