private void cuentasToolStripMenuItem_Click(object sender, EventArgs e) { Form frm = Application.OpenForms.Cast<Form>().FirstOrDefault(x => x is frmCuenta); if (frm != null) { //si la instancia existe la pongo en primer plano frm.BringToFront(); return; } frm = new frmCuenta(); frm.MdiParent = this; frm.Show(); }
private void cuentasToolStripMenuItem_Click(object sender, EventArgs e) { Form frm = Application.OpenForms.Cast <Form>().FirstOrDefault(x => x is frmCuenta); if (frm != null) { //si la instancia existe la pongo en primer plano frm.BringToFront(); return; } frm = new frmCuenta(); frm.MdiParent = this; frm.Show(); }