Beispiel #1
0
 private void TurmaSelector_Load(object sender, EventArgs e)
 {
     if (this.cadastroTurmaController == null)
     {
         this.cadastroTurmaController = new CadastroTurmaController();
     }
     this.turmaBindingSource.DataSource = this.cadastroTurmaController.LoadTurmas();
     this.cb_turma.SelectedIndex        = -1;
     this.cb_turma.SelectedItem         = null;
 }
Beispiel #2
0
 private void CadastraTurma_Load(object sender, EventArgs e)
 {
     if (this.cadastroTurmaController == null)
     {
         this.cadastroTurmaController = new CadastroTurmaController();
     }
     this.turmaLista = this.cadastroTurmaController.LoadTurmas();
     if (this.turmaLista.Count > 0)
     {
         this.btn_modificar.Enabled = true;
         this.Preencher(0);
     }
 }