コード例 #1
0
        private void tsbAgregar_Click(object sender, EventArgs e)
        {
            AlumnosDesktop alumnosDesktop = new AlumnosDesktop(ApplicationForm.Modoform.Alta);

            alumnosDesktop.ShowDialog();
            Listar();
        }
コード例 #2
0
 private void tstEliminar_Click(object sender, EventArgs e)
 {
     if ((dgvAlumnos.SelectedRows.Count > 0))
     {
         int            ID            = ((Persona)this.dgvAlumnos.SelectedRows[0].DataBoundItem).ID;
         AlumnosDesktop alumnoDesktop = new AlumnosDesktop(ID, ApplicationForm.Modoform.Baja);
         alumnoDesktop.ShowDialog();
         Listar();
     }
     else
     {
         MessageBox.Show("POR FAVOR SELECCIONAR UN REGISTRO");
     }
 }