示例#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");
 }