Exemplo n.º 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();
     }
 }
Exemplo n.º 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();
     }
 }