private void btnEditar_Click(object sender, EventArgs e) { Aluno a = cbNome.SelectedItem as Aluno; Aluno al = new Aluno(); List <Aluno> Alunos = al.RetornarListaCompleta(); FormularioAluno fa = new FormularioAluno(); fa.PopulaCampos(a); fa.ShowDialog(); InicializaCombo(); cbNome.Refresh(); cbNome.Text = ""; txtID.Text = "ID: " + ""; txtEmail.Text = "Email: " + ""; txtCPF.Text = "CPF: " + ""; txtEndereco.Text = "Endereço: " + ""; txtNumero.Text = "Número: " + ""; txtComplemento.Text = "Complemento: " + ""; txtBairro.Text = "Bairro: " + ""; txtCidade.Text = "Cidade: " + ""; txtEstado.Text = "Estado: " + ""; }
public void alunoToolStripMenuItem_Click(object sender, EventArgs e) { FormularioAluno fa = new FormularioAluno(); fa.ShowDialog(this); }