/// ----------------------------------------------------------------------------- /// <summary> /// LoadSettings loads the settings from the Database and displays them /// </summary> /// ----------------------------------------------------------------------------- public override void LoadSettings() { if (Page.IsPostBack) { return; } try { DefaultFolderTypeComboBox.DataSource = new List <FolderMappingInfo> { FolderMappingController.Instance.GetFolderMapping(PortalId, "Standard"), FolderMappingController.Instance.GetFolderMapping(PortalId, "Secure"), FolderMappingController.Instance.GetFolderMapping(PortalId, "Database") }; DefaultFolderTypeComboBox.DataBind(); var defaultFolderTypeId = SettingsRepository.GetDefaultFolderTypeId(ModuleId); if (defaultFolderTypeId.HasValue) { DefaultFolderTypeComboBox.SelectedValue = defaultFolderTypeId.ToString(); } ModeComboBox.SelectedValue = SettingsRepository.GetMode(ModuleId).ToString(); LoadFilterViewSettings(); } catch (Exception exc) { Exceptions.ProcessModuleLoadException(this, exc); } }
/// ----------------------------------------------------------------------------- /// <summary> /// LoadSettings loads the settings from the Database and displays them /// </summary> /// ----------------------------------------------------------------------------- public override void LoadSettings() { if (Page.IsPostBack) { return; } try { DefaultFolderTypeComboBox.DataSource = new List <FolderMappingInfo> { FolderMappingController.Instance.GetFolderMapping(PortalId, "Standard"), FolderMappingController.Instance.GetFolderMapping(PortalId, "Secure"), FolderMappingController.Instance.GetFolderMapping(PortalId, "Database") }; DefaultFolderTypeComboBox.DataBind(); if (Settings.Contains(DefaultFolderTypeIdSetting)) { DefaultFolderTypeComboBox.SelectedValue = Settings[DefaultFolderTypeIdSetting].ToString(); } } catch (Exception exc) { Exceptions.ProcessModuleLoadException(this, exc); } }