Пример #1
0
 private void cadastroDeLoguinToolStripMenuItem_Click(object sender, EventArgs e)
 {
     if (Application.OpenForms.OfType<FrmCadastroLogin>().Count() > 0)
     {
         Application.OpenForms.OfType<FrmCadastroLogin>().First().Focus();
     }
     else
     {
         FrmCadastroLogin CadastroLogin = new FrmCadastroLogin();
         CadastroLogin.MdiParent = this;
         CadastroLogin.Show();
     }
 }
Пример #2
0
 private void cadastroDeLoguinToolStripMenuItem_Click(object sender, EventArgs e)
 {
     if (Application.OpenForms.OfType <FrmCadastroLogin>().Count() > 0)
     {
         Application.OpenForms.OfType <FrmCadastroLogin>().First().Focus();
     }
     else
     {
         FrmCadastroLogin CadastroLogin = new FrmCadastroLogin();
         CadastroLogin.MdiParent = this;
         CadastroLogin.Show();
     }
 }