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(); }
private void Eliminargestion_Click(object sender, EventArgs e) { limpiar(); GestiondePersonal gp = new GestiondePersonal(con, true); tabStrip1.MdiForm = this; gp.MdiParent = this; gp.Show(); }
private void Agregargestion_Click(object sender, EventArgs e) { limpiar(); GestiondePersonal gp = new GestiondePersonal(con, false, null); tabStrip1.MdiForm = this; gp.MdiParent = this; gp.Show(); }
private void Agregargestion_Click(object sender, EventArgs e) { limpiar(); GestiondePersonal gp = new GestiondePersonal(con, false, null); tabStrip1.MdiForm = this; gp.MdiParent = this; gp.Show(); }
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(); }