Пример #1
0
        private void tsbNuevo_Click(object sender, EventArgs e)
        {
            ABMMateriasDesktop materiaDesktop = new ABMMateriasDesktop(ApplicationForm.ModoForm.Alta);

            materiaDesktop.ShowDialog();
            this.Listar();
        }
Пример #2
0
 private void tsbEliminar_Click(object sender, EventArgs e)
 {
     if (this.dgvMaterias.SelectedRows.Count != 0)
     {
         int ID = (int)this.dgvMaterias.SelectedRows[0].Cells["id"].Value;
         ABMMateriasDesktop materiaDesktop = new ABMMateriasDesktop(ID, ApplicationForm.ModoForm.Baja);
         materiaDesktop.ShowDialog();
         this.Listar();
     }
 }