private void tsbNuevo_Click(object sender, EventArgs e) { PlanEscritorio planEsc = new PlanEscritorio(ApplicationForm.ModoForm.Alta); planEsc.ShowDialog(); this.Listar(); }
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"); } }
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"); } }
private void tsbNuevo_Click(object sender, EventArgs e) { PlanEscritorio planEsc = new PlanEscritorio(ApplicationForm.ModoForm.Alta); planEsc.ShowDialog(); this.Listar(); }