private void TbxCadastro_Click(object sender, EventArgs e) { TelaDeCadastro formCad = new TelaDeCadastro(); formCad.ShowDialog(); aluno.Add(formCad.alunoCadastro); }
private void Button1_Click(object sender, EventArgs e) { TelaDeCadastro formCad = new TelaDeCadastro(); formCad.ShowDialog(); alunos.Add(formCad.novoAluno); }