private void btnValidar_Click(object sender, EventArgs e) { if (this.dgvDatos.CurrentRow == null) return; DetalleValidarAplicacionVehiculo frmValidar = new DetalleValidarAplicacionVehiculo((int)this.dgvDatos.CurrentRow.Cells["ParteVehiculoID"].Value); if (frmValidar.ShowDialog() == DialogResult.OK) { var Fuente = Datos.GetEntity<TipoFuente>(q => q.TipoFuenteID == frmValidar.ParteV.TipoFuenteID); this.dgvDatos.CurrentRow.Cells["Fuente"].Value = (Fuente == null ? "" : Fuente.NombreTipoFuente); this.dgvDatos.AutoResizeColumns(); } frmValidar.Dispose(); }
private void btnValidar_Click(object sender, EventArgs e) { if (this.dgvDatos.CurrentRow == null) { return; } DetalleValidarAplicacionVehiculo frmValidar = new DetalleValidarAplicacionVehiculo((int)this.dgvDatos.CurrentRow.Cells["ParteVehiculoID"].Value); if (frmValidar.ShowDialog() == DialogResult.OK) { var Fuente = Datos.GetEntity <TipoFuente>(q => q.TipoFuenteID == frmValidar.ParteV.TipoFuenteID); this.dgvDatos.CurrentRow.Cells["Fuente"].Value = (Fuente == null ? "" : Fuente.NombreTipoFuente); this.dgvDatos.AutoResizeColumns(); } frmValidar.Dispose(); }