Пример #1
0
        /// <summary>
        /// Save the Menu settings to the settings file
        /// </summary>
        /// <param name="menuNode">XML-node for the Menu settings</param>
        public void Save(XmlNode menuNode)
        {
            string xpath;

            //XmlNode node;

            xpath = "./menuMode";
            SettingsHelper.SetSettingValue(xpath, menuNode, MenuMode.ToString());

            xpath = "./numberOfValuesInDefaultView";
            SettingsHelper.SetSettingValue(xpath, menuNode, NumberOfValuesInDefaultView.ToString());

            xpath = "./showRoot";
            SettingsHelper.SetSettingValue(xpath, menuNode, ShowRoot.ToString());

            xpath = "./expandAll";
            SettingsHelper.SetSettingValue(xpath, menuNode, ExpandAll.ToString());

            xpath = "./sortByAlias";
            SettingsHelper.SetSettingValue(xpath, menuNode, SortByAlias.ToString());

            xpath = "./showSelectLink";
            SettingsHelper.SetSettingValue(xpath, menuNode, ShowSelectLink.ToString());

            xpath = "./viewLinkMode";
            SettingsHelper.SetSettingValue(xpath, menuNode, ViewLinkMode.ToString());

            xpath = "./showDownloadLink";
            SettingsHelper.SetSettingValue(xpath, menuNode, ShowDownloadLink.ToString());

            xpath = "./showModifiedDate";
            SettingsHelper.SetSettingValue(xpath, menuNode, ShowModifiedDate.ToString());

            xpath = "./showLastUpdated";
            SettingsHelper.SetSettingValue(xpath, menuNode, ShowLastUpdated.ToString());

            xpath = "./showFileSize";
            SettingsHelper.SetSettingValue(xpath, menuNode, ShowFileSize.ToString());

            xpath = "./showTableCategory";
            SettingsHelper.SetSettingValue(xpath, menuNode, ShowTableCategory.ToString());

            xpath = "./showTableUpdatedAfterPublish";
            SettingsHelper.SetSettingValue(xpath, menuNode, ShowTableUpdatedAfterPublish.ToString());

            xpath = "./showVariablesAndValues";
            SettingsHelper.SetSettingValue(xpath, menuNode, ShowVariablesAndValues.ToString());

            xpath = "./metadataAsIcons";
            SettingsHelper.SetSettingValue(xpath, menuNode, MetadataAsIcons.ToString());

            xpath = "./showTextToMetadata";
            SettingsHelper.SetSettingValue(xpath, menuNode, ShowTextToMetadata.ToString());

            xpath = "./showMenuExplanation";
            SettingsHelper.SetSettingValue(xpath, menuNode, ShowMenuExplanation.ToString());
        }