Esempio n. 1
0
        private void btAdicionar_Click(object sender, EventArgs e)
        {
            Cadastro_Aluno tela = new Cadastro_Aluno();

            tela.FormClosed += Tela_FormClosed;
            tela.Show();
        }
Esempio n. 2
0
 private void btEditar_Click(object sender, EventArgs e)
 {
     if (VerificarSelecao())
     {
         Aluno          AlunoSelecionado = (Aluno)dgAlunos.SelectedRows[0].DataBoundItem;
         Cadastro_Aluno tela             = new Cadastro_Aluno();
         tela.MdiParent        = this.MdiParent;
         tela.AlunoSelecionado = AlunoSelecionado;
         tela.FormClosed      += Tela_FormClosed;
         tela.Show();
     }
 }