Exemplo n.º 1
0
 private void InitCityData()
 {
     try
     {
         UpdateCityListXML update = new UpdateCityListXML();
         bool result = update.Download();
         if (result)
         {
             DataMigration dm = new DataMigration();
             dm.LoadCityXML();
             //刷新城市数据
             InitCiyCondition();
         }
     }
     catch (Exception ex)
     {
         log.WriteLog(ex.ToString());
     }
 }
Exemplo n.º 2
0
 private void UpdateWebsiteData()
 {
     try
     {
         UpdateWebsiteXML update = new UpdateWebsiteXML();
         bool result = update.Download();
         if (result)
         {
             DataMigration dm = new DataMigration();
             dm.LoadWebsiteXML();
             //刷新网址数据
             GetFixedWebsiteData();
             InitConfigWebsite();
         }
     }
     catch (Exception ex)
     {
         log.WriteLog(ex.ToString());
     }
 }