public override void OpenEditForm() { try { PreguntasEditForm form = new PreguntasEditForm(ActiveItem, ActiveList, true); if (form.Lista != null) { AddForm(form); } List = Preguntas.GetList(false, List.SessionCode); RefreshSources(); ExecuteAction(molAction.FilterAll); } 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); } }
/// <summary> /// Toma la List de bancos de la base de datos y rellena la tabla. /// </summary> protected override void RefreshMainData() { PgMng.Grow(string.Empty, "Pregunta"); _selectedOid = ActiveOID; if (Datos.Count <= 1) { switch (DataType) { case EntityMngFormTypeData.Default: List = Preguntas.GetList(false); //.GetPreguntasModulo(CurrentModuloOid, false); break; } PgMng.Grow(string.Empty, "Lista de Preguntas"); } }