private void btnNuevo_Click(object sender, EventArgs e) { frmManEmpleados formulario = new frmManEmpleados(); formulario.StartPosition = FormStartPosition.CenterScreen; formulario.recogerDatos(0); formulario.ShowDialog(); Buscar(); }
private void grdEmpleados_DoubleClick(object sender, EventArgs e) { if (this.grdEmpleados.RowCount > 0) { frmManEmpleados formulario = new frmManEmpleados(); formulario.recogerDatos(Convert.ToInt32(this.grdEmpleados.CurrentRow.Cells[0].Value)); formulario.StartPosition = FormStartPosition.CenterScreen; formulario.ShowDialog(); Buscar(); } }