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; }
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); } }