Beispiel #1
0
        private void Modificargestion_Click(object sender, EventArgs e)
        {
            limpiar();

            ListaEmpleados lEmp   = new ListaEmpleados(con, true);
            Empleado       emp    = null;
            var            result = lEmp.ShowDialog();

            if (result == DialogResult.OK)
            {
                emp = lEmp.emp;
            }
            else if (result == DialogResult.Abort)
            {
                lEmp.Close();
                return;
            }

            lEmp.Close();
            GestiondePersonal gEmp = new GestiondePersonal(con, true, emp);

            tabStrip1.MdiForm = this;
            gEmp.MdiParent    = this;
            gEmp.Show();
        }
Beispiel #2
0
 private void Eliminargestion_Click(object sender, EventArgs e)
 {
     limpiar();
     GestiondePersonal gp = new GestiondePersonal(con, true);
     tabStrip1.MdiForm = this;
     gp.MdiParent = this;
     gp.Show();
 }
Beispiel #3
0
 private void Agregargestion_Click(object sender, EventArgs e)
 {
     limpiar();
     GestiondePersonal gp = new GestiondePersonal(con, false, null);
     tabStrip1.MdiForm = this;
     gp.MdiParent = this;
     gp.Show();
 }
Beispiel #4
0
        private void Agregargestion_Click(object sender, EventArgs e)
        {
            limpiar();
            GestiondePersonal gp = new GestiondePersonal(con, false, null);

            tabStrip1.MdiForm = this;
            gp.MdiParent      = this;
            gp.Show();
        }
Beispiel #5
0
        private void Modificargestion_Click(object sender, EventArgs e)
        {
            limpiar();

            ListaEmpleados lEmp = new ListaEmpleados(con, true);
            Empleado emp = null;
            var result = lEmp.ShowDialog();
            if (result == DialogResult.OK)
                emp = lEmp.emp;
            else if (result == DialogResult.Abort)
            {
                lEmp.Close();
                return;
            }
            
            lEmp.Close();
            GestiondePersonal gEmp = new GestiondePersonal(con, true, emp);
            tabStrip1.MdiForm = this;
            gEmp.MdiParent = this;
            gEmp.Show();
        }