public static EmpleadoIndex Instancia() { if (frmInst == null || frmInst.IsDisposed == true) { frmInst = new EmpleadoIndex(); } frmInst.BringToFront(); return(frmInst); }
private void Index() { EmpleadoIndex editar = null; editar = EmpleadoIndex.Instancia(); editar.MdiParent = MdiAdmin.ActiveForm; editar.Show(); this.Close(); }
private void Index() { EmpleadoIndex index = null; index = EmpleadoIndex.Instancia(); index.MdiParent = MdiAdmin.ActiveForm; index.Show(); this.Close(); }
private void empleadosToolStripMenuItem_Click(object sender, EventArgs e) { EmpleadoIndex index = null; index = EmpleadoIndex.Instancia(); index.MdiParent = this; index.Show(); Form frm = this.MdiChildren.FirstOrDefault(x => x is EmpleadoEditar || x is EmpleadoNuevo); if (frm != null) { frm.Close(); } }