Exemple #1
0
        private void btnNuevo_Click(object sender, EventArgs e)
        {
            PlanesDesktop frmPlanesDesktop = new PlanesDesktop(ApplicationForm.ModoForm.Alta);

            frmPlanesDesktop.ShowDialog();
            frmPlanesDesktop.Dispose();
        }
Exemple #2
0
 private void btnEliminar_Click(object sender, EventArgs e)
 {
     if (ValidarDGV(dgvPlanes))
     {
         int           ID = ((Business.Entities.Plan) this.dgvPlanes.SelectedRows[0].DataBoundItem).Id;
         PlanesDesktop frmPlanesDesktop = new PlanesDesktop(ID, ModoForm.Baja);
         frmPlanesDesktop.ShowDialog();
         frmPlanesDesktop.Dispose();
     }
 }