示例#1
0
 public static EmpleadoIndex Instancia()
 {
     if (frmInst == null || frmInst.IsDisposed == true)
     {
         frmInst = new EmpleadoIndex();
     }
     frmInst.BringToFront();
     return(frmInst);
 }
示例#2
0
        private void Index()
        {
            EmpleadoIndex editar = null;

            editar           = EmpleadoIndex.Instancia();
            editar.MdiParent = MdiAdmin.ActiveForm;
            editar.Show();
            this.Close();
        }
示例#3
0
        private void Index()
        {
            EmpleadoIndex index = null;

            index           = EmpleadoIndex.Instancia();
            index.MdiParent = MdiAdmin.ActiveForm;
            index.Show();
            this.Close();
        }
示例#4
0
        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();
            }
        }