/// <summary> /// Abre el formulario para editar item /// <returns>void</returns> /// </summary> public override void OpenEditForm() { try { PlanDocenteEditForm form = new PlanDocenteEditForm(ActiveOID); if (form.Entity != null) { AddForm(form); _entity = form.Entity; } } catch (Csla.DataPortalException ex) { MessageBox.Show(ex.BusinessException.ToString(), moleQule.Face.Resources.Labels.ERROR_TITLE, MessageBoxButtons.OK, MessageBoxIcon.Exclamation); } catch (Exception ex) { MessageBox.Show(ex.ToString(), moleQule.Face.Resources.Labels.ERROR_TITLE, MessageBoxButtons.OK, MessageBoxIcon.Exclamation); } }
protected override void ModificarPlanAction() { try { if (_entity.OidPlan != 0) { PlanDocenteEditForm form = new PlanDocenteEditForm(_entity.OidPlan); form.ShowDialog(); if (form.ActionResult == DialogResult.OK) { RefreshHorario(); } } } catch { } }