Ejemplo n.º 1
0
 private void cargaCombos()
 {
     CursoBLL cursos = new CursoBLL();
     CarreraBLL carreras = new CarreraBLL();
     GrupoBLL grupos = new GrupoBLL();
     cbCar1.ItemsSource = carreras.ObtenerAll();
     //cbCurso.ItemsSource = cursos.ObtenerAll();
     cbCar2.ItemsSource = carreras.ObtenerAll();
     //cbCur2.ItemsSource = cursos.ObtenerAll();
     cbDis.ItemsSource = grupos.ObtenerAll();
 }
Ejemplo n.º 2
0
        private void Window_Loaded_1(object sender, RoutedEventArgs e)
        {
            LaboratorioBLL labs = new LaboratorioBLL();
            DocenteBLL docentes = new DocenteBLL();
            AsignaturaBLL asignaturas = new AsignaturaBLL();
            GrupoBLL grupos = new GrupoBLL();

            cbLab.ItemsSource = labs.ObtenerAll().OrderBy(s => s.ID);
            cbDoc.ItemsSource = docentes.ObtenerAll().OrderBy(s => s.Nombre);
            cbMat.ItemsSource = asignaturas.ObtenerAll().OrderBy(s => s.Nombre);
            cbGrp.ItemsSource = grupos.ObtenerAll().OrderBy(s=>s.Nombre);
            this.inicializarCtrls();
        }