Esempio n. 1
0
 private void recargaGRID()
 {
     try {
         BaseResponse <List <Carreras> > carreras = carreraBLL.GetCarrera();
         tabla_carreras.DataSource = carreras.Results;
         this.tabla_carreras.Columns["IdCarrera"].Visible = false;
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.Message + " TRACE : " + ex.StackTrace);
     }
 }
Esempio n. 2
0
 private void fillCombo()
 {
     try
     {
         BaseResponse <List <Carreras> > carrera = carreraBLL.GetCarrera();
         cmbCarrera.DataSource    = carrera.Results;
         cmbCarrera.ValueMember   = "IdCarrera";
         cmbCarrera.DisplayMember = "Nombre";
         cmbCarrera.SelectedValue = "valuemember value";
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.Message + " TRACE : " + ex.StackTrace);
     }
 }