private void CarregaComboBox()
        {
            //ComboBox Professor
            ProfessorBLL professorbll = new ProfessorBLL();

            cbbProfessor.DataSource    = professorbll.Preencher();
            cbbProfessor.DisplayMember = "nome";
            cbbProfessor.ValueMember   = "id";
            //ComboBox Disciplina
            DisciplinaBLL disciplinabll = new DisciplinaBLL();

            cbbDisciplina.DataSource    = disciplinabll.Preencher();
            cbbDisciplina.DisplayMember = "nome";
            cbbDisciplina.ValueMember   = "id";
            //ComboBox Sala
            SalaBLL salabll = new SalaBLL();

            cbbSala.DataSource    = salabll.Preencher();
            cbbSala.DisplayMember = "nome";
            cbbSala.ValueMember   = "id";
            //ComboBox Serie
            SerieBLL seriebll = new SerieBLL();

            cbbSerie.DataSource    = seriebll.Preencher();
            cbbSerie.DisplayMember = "nome";
            cbbSerie.ValueMember   = "id";
            //ComboBox Turma
            TurmaBLL turmabll = new TurmaBLL();

            cbbTurma.DataSource    = turmabll.Preencher();
            cbbTurma.DisplayMember = "nome";
            cbbTurma.ValueMember   = "id";
        }
Beispiel #2
0
        private void CarregaComboBox()
        {
            ProfessorBLL professor = new ProfessorBLL();

            cbbProfessor.DataSource    = professor.Preencher();
            cbbProfessor.DisplayMember = "nome";
            cbbProfessor.ValueMember   = "id";
            DisciplinaBLL disciplina = new DisciplinaBLL();

            cbbDisciplina.DataSource    = disciplina.Preencher();
            cbbDisciplina.DisplayMember = "nome";
            cbbDisciplina.ValueMember   = "id";
        }