Example #1
0
        private void tsbNuevo_Click(object sender, EventArgs e)
        {
            ABMPlanesDesktop planDesktop = new ABMPlanesDesktop(ApplicationForm.ModoForm.Alta);

            planDesktop.ShowDialog();
            this.Listar();
        }
Example #2
0
 private void tsbEliminar_Click(object sender, EventArgs e)
 {
     if (this.dgvPlanes.SelectedRows.Count != 0)
     {
         int ID = (int)this.dgvPlanes.SelectedRows[0].Cells["id"].Value;
         ABMPlanesDesktop planDesktop = new ABMPlanesDesktop(ID, ApplicationForm.ModoForm.Baja);
         planDesktop.ShowDialog();
         this.Listar();
     }
 }