private void EmpleadosToolStripMenuItem_Click(object sender, EventArgs e) { Form frmC = Application.OpenForms.Cast <Form>().FirstOrDefault(x => x is Frm_mantEmpleado); if (ventanaEmpleado == false || frmC == null) { if (frmC == null) { empleado = new Frm_mantEmpleado(sUsuario); } empleado.MdiParent = this; empleado.Show(); Application.DoEvents(); ventanaEmpleado = true; } else { empleado.WindowState = System.Windows.Forms.FormWindowState.Normal; } }
private void empleadoToolStripMenuItem_Click(object sender, EventArgs e) { Form frmC = Application.OpenForms.Cast <Form>().FirstOrDefault(x => x is Frm_mantEmpleado); if (ventanaMantEmp == false || frmC == null) { if (frmC == null) { Emple = new Frm_mantEmpleado(nombreUsuario); } Emple.MdiParent = this; Emple.Show(); Application.DoEvents(); ventanaMantEmp = true; } else { mantenimientoCliente.WindowState = System.Windows.Forms.FormWindowState.Normal; } }