private void Editar() { DataGridViewRow row = this.grdGrillaAdmin.CurrentRow; long id = Convert.ToInt64(row.Cells[0].Value); frmObservacionesCrud ofrmObs = new frmObservacionesCrud(id, oAdminObs, "E"); if (ofrmObs.ShowDialog() == DialogResult.OK) { _oUIObservaciones.CargarGrilla(); } }
private void btnVer_Click(object sender, EventArgs e) { try { DataGridViewRow row = this.grdGrillaAdmin.CurrentRow; int id = Convert.ToInt32(row.Cells[0].Value); frmObservacionesCrud ofrmObs = new frmObservacionesCrud(id, oAdminObs, "V"); ofrmObs.Show(); } catch (Exception ex) { Cursor.Current = Cursors.Default; ManejarError Err = new ManejarError(); Err.CargarError(ex, e.ToString(), ((Control)sender).Name, this.FindForm().Name); } }
private void btnNuevo_Click(object sender, EventArgs e) { try { frmObservacionesCrud ofrmObs = new frmObservacionesCrud(0, _oAdmin, "I"); if (ofrmObs.ShowDialog() == DialogResult.OK) { _oUIObservaciones.CargarGrilla(); } } catch (Exception ex) { Cursor.Current = Cursors.Default; ManejarError Err = new ManejarError(); Err.CargarError(ex, e.ToString(), ((Control)sender).Name, this.FindForm().Name); } }