Ejemplo n.º 1
0
        private void btnAgregar_Click(object sender, EventArgs e)
        {
            AlumnoDesktop adesktop = new AlumnoDesktop(ApplicationForm.ModoForm.Alta);

            adesktop.ShowDialog();
            this.Listar();
        }
Ejemplo n.º 2
0
 private void btnEliminar_Click(object sender, EventArgs e)
 {
     if (this.dgvAlumnos.SelectedRows.Count != 0)
     {
         int           ID       = ((Business.Entities.Alumno) this.dgvAlumnos.SelectedRows[0].DataBoundItem).ID;
         AlumnoDesktop adesktop = new AlumnoDesktop(ID, ApplicationForm.ModoForm.Baja);
         adesktop.ShowDialog();
     }
     this.Listar();
 }