Пример #1
0
 private void recargaGRID()
 {
     try
     {
         BaseResponse <List <Materias> > docentes = materiasBLL.GetMaterias();
         tabla_materias.DataSource = docentes.Results;
         this.tabla_materias.Columns["IdDocente"].Visible           = false;
         this.tabla_materias.Columns["IdMateria"].Visible           = false;
         this.tabla_materias.Columns["IdDia"].Visible               = false;
         this.tabla_materias.Columns["NombreMateriaCustom"].Visible = false;
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.Message + " TRACE : " + ex.StackTrace);
     }
 }
Пример #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";

                BaseResponse <List <Materias> > materias = materiasBLL.GetMaterias();
                cmbMateria.DataSource    = materias.Results;
                cmbMateria.ValueMember   = "IdMateria";
                cmbMateria.DisplayMember = "NombreMateriaCustom";
                cmbMateria.SelectedValue = "valuemember value";

                fillComboGrupos();
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message + " TRACE : " + ex.StackTrace);
            }
        }