Beispiel #1
0
        void saveBuildInfo()
        {
            VZ_SystemInfo info      = VZ_AppHelper.GetInstance().systemInfo;
            String        newConfig = JsonHelper.SerializeObject(info);

            VZMethods.saveFile(AppDomain.CurrentDomain.BaseDirectory + "\\Datas\\ConfigInfo.json", newConfig);
        }
Beispiel #2
0
 void getUpdateList()
 {
     if (versionInfo.version_url == null || versionInfo.version_url.Equals(""))
     {
         return;
     }
     else
     {
         HttpWebResponse response       = HttpWebResponseUtility.CreateGetHttpResponse(versionInfo.version_url, 6000, null, null);
         Stream          responseStream = response.GetResponseStream();
         StreamReader    sr             = new StreamReader(responseStream);
         String          msg            = sr.ReadToEnd();
         //保存到本地
         VZMethods.saveFile(AppDomain.CurrentDomain.BaseDirectory + @"Update\" + versionInfo.build + ".json", msg);
         if (msg != null && !msg.Equals(""))
         {
             updateList = msg;
         }
     }
 }