Beispiel #1
0
        private void btnEditar_Click(object sender, EventArgs e)
        {
            string rm = dtgAlunos.SelectedRows[0].Cells[0].Value.ToString();

            ObjAluno = objAlunoDados.consultarAluno(rm);
            CadastroAluno ca = new CadastroAluno(ObjAluno);

            ca.ShowDialog();
        }
Beispiel #2
0
 private void dtgAlunos_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
 {
     if (e.RowIndex != -1)
     {
         string rm = dtgAlunos.SelectedRows[0].Cells[0].Value.ToString();
         ObjAluno = objAlunoDados.consultarAluno(rm);
         CadastroAluno ca = new CadastroAluno(ObjAluno);
         ca.ShowDialog();
     }
 }
Beispiel #3
0
        private void cadastrarAlunoToolStripMenuItem1_Click(object sender, EventArgs e)
        {
            CadastroAluno cadastroAluno = new CadastroAluno();

            cadastroAluno.ShowDialog();
        }
Beispiel #4
0
        private void btnAdicionar_Click(object sender, EventArgs e)
        {
            CadastroAluno cAluno = new CadastroAluno();

            cAluno.ShowDialog();
        }