private void VisualizarPagamentos_Load(object sender, EventArgs e) { if (criancaController == null) { criancaController = new CriancasController(); } this.dtp_fim.Value = this.dtp_fim.Value.AddMonths(1); }
private void TurmaSelector_Load(object sender, EventArgs e) { if (this.criancaController == null) { this.criancaController = new CriancasController(); } this.responsavelBindingSource.DataSource = this.criancaController.LoadCriancas(); this.cb_crianca.SelectedIndex = -1; this.cb_crianca.SelectedItem = null; }
private void CadastroAluno_Load(object sender, EventArgs e) { if (this.criancaController == null) { this.criancaController = new CriancasController(); } this.criancasLista = criancaController.LoadCriancas(); if (this.criancasLista.Count > 0) { this.Preencher(this.indiceAtual); this.btn_modificar.Enabled = true; } }