Пример #1
0
 void ReadAppCfg() 
 {
     string cfgDir = NowAppDirHelper.GetNowAppDir(AppCategory.WinApp);
     string file = TicketAppConfig.Ticket12306CfgReletive;//相对路径名称
     configDict = XmlFileHelper.ReadAppsettingSimulateConfig(cfgDir + "/" + file, "configuration/appSettings", "key", "value");
     Dictionary<string, string> brushCfg = XmlFileHelper.ReadXmlNodeItemInText(cfgDir + "/" + TicketAppConfig.BrushTicketCfg, "ticket");
 }
Пример #2
0
        /// <summary>
        ///
        /// </summary>
        /// <returns></returns>
        public static Dictionary <string, string> GetWebChatCfg()
        {
            string releative = ConfigurationManager.AppSettings["WebChatConfigDir"];
            string rootName  = ConfigurationManager.AppSettings["WebChatConfigRootName"];

            return(XmlFileHelper.ReadAppsettingSimulateConfig(NowAppDirHelper.GetNowAppDir(AppCategory.WinApp) + "/" + releative, rootName, "key", "value"));
        }