private void cargaCombo() { { ServicioGeneralClient servicioGeneral = new ServicioGeneralClient(); var withBlock = cboPerfil; withBlock.DataSource = servicioGeneral.getPerfiles(1, 0); withBlock.ValueMember = "CODIGO"; withBlock.DisplayMember = "NOMBRE"; withBlock.SelectedValue = 0; } }
private void llenaGrilla() { ServicioGeneralClient servicioGeneral = new ServicioGeneralClient(); dtgPerfiles.DataSource = servicioGeneral.getPerfiles(2, 0); }