private void fillForm() { int IdClienteGrupo = 0; int.TryParse(hfFkey.Value, out IdClienteGrupo); try { Cliente_codigo o = CatalogCtrl.Cliente_codigoGet(IdClienteGrupo); txt_clave.Text = o.Clave; txt_digito.Text = o.Digitos.ToString(); txt_consec_arribo.Text = o.Consec_arribo.ToString(); txt_anio.Text = o.Anio_actual.ToString(); rvAnio.MinimumValue = DateTime.Now.Year.ToString(); rvAnio.MaximumValue = rvAnio.MinimumValue; txt_consec_embarque.Text = o.Consec_embarque.ToString(); chk_dif_codigo.Checked = o.Dif_codigo; hfId.Value = o.Id.ToString(); } catch { throw; } }