コード例 #1
0
        private void btnNovo_Click(object sender, EventArgs e)
        {
            Form alunoCad = new AlunoCadView();

            alunoCad.StartPosition = FormStartPosition.CenterParent;
            alunoCad.ShowDialog(this);
            Fill(alunos);
        }
コード例 #2
0
        private void btnEditar_Click(object sender, EventArgs e)
        {
            AlunoModel   aluno        = alunoDAO.readAlunoByCPF(dataGridAlunos.CurrentRow.Cells[0].Value.ToString());
            AlunoCadView alunoCadView = new AlunoCadView(aluno, true);

            alunoCadView.StartPosition = FormStartPosition.CenterParent;
            alunoCadView.ShowDialog(this);
            Fill(alunos);
        }