private void Seleccion(int edicion) { int fila = 0; frmEmpleados e = new frmEmpleados(); e.MdiParent = this.MdiParent; e.OnNuevoEmpleado += e_OnNuevoEmpleado; if (!edicion.Equals(GLOBALES.NUEVO)) { fila = dgvEmpleados.CurrentCell.RowIndex; e._idempleado = int.Parse(dgvEmpleados.Rows[fila].Cells[0].Value.ToString()); } e._tipoOperacion = edicion; e.Show(); }
private void Seleccion(int edicion) { if (GLOBALES.FORMISOPEN("frmEmpleados")) return; int fila = 0; frmEmpleados empleado = new frmEmpleados(); //empleado.MdiParent = this.MdiParent; empleado.OnNuevoEmpleado += e_OnNuevoEmpleado; if (!edicion.Equals(GLOBALES.NUEVO)) { fila = dgvEmpleados.CurrentCell.RowIndex; empleado._idempleado = int.Parse(dgvEmpleados.Rows[fila].Cells[0].Value.ToString()); } empleado._tipoOperacion = edicion; empleado.Show(); }