Esempio n. 1
0
        private void tsbNuevo_Click(object sender, EventArgs e)
        {
            PlanEscritorio planEsc = new PlanEscritorio(ApplicationForm.ModoForm.Alta);

            planEsc.ShowDialog();
            this.Listar();
        }
Esempio n. 2
0
 private void tsbEliminar_Click(object sender, EventArgs e)
 {
     if (dgvPlanes.SelectedRows.Count > 0)
     {
         int            ID      = ((Entidades.Plan) this.dgvPlanes.SelectedRows[0].DataBoundItem).Id;
         PlanEscritorio planEsc = new PlanEscritorio(ID, ApplicationForm.ModoForm.Baja);
         planEsc.ShowDialog();
         this.Listar();
     }
     else
     {
         MessageBox.Show("Debe seleccionar un plan para elimnar");
     }
 }
Esempio n. 3
0
 private void tsbEliminar_Click(object sender, EventArgs e)
 {
     if (dgvPlanes.SelectedRows.Count > 0)
     {
         int ID = ((Entidades.Plan)this.dgvPlanes.SelectedRows[0].DataBoundItem).Id;
         PlanEscritorio planEsc = new PlanEscritorio(ID, ApplicationForm.ModoForm.Baja);
         planEsc.ShowDialog();
         this.Listar();
     }
     else
     {
         MessageBox.Show("Debe seleccionar un plan para elimnar");
     }
 }
Esempio n. 4
0
 private void tsbNuevo_Click(object sender, EventArgs e)
 {
     PlanEscritorio planEsc = new PlanEscritorio(ApplicationForm.ModoForm.Alta);
     planEsc.ShowDialog();
     this.Listar();
 }