示例#1
0
        private void btnAdd_Click(object sender, EventArgs e)
        {
            FormAddAluno formAddAluno = new FormAddAluno(_repositorio);

            formAddAluno.ShowDialog();
            RefreshView();
        }
示例#2
0
        private void btnEdit_Click(object sender, EventArgs e)
        {
            FormAddAluno formAddAluno = new FormAddAluno(_repositorio, (Aluno)dgvAlunos.SelectedRows[0].DataBoundItem);

            formAddAluno.ShowDialog();
            RefreshView();
        }