Esempio n. 1
0
        public TestWindow()
        {
            InitializeComponent();

            String str  = VZMethods.readFileToString(@"C:\Users\zwtd\Desktop\test.json");
            String str2 = VZMethods.readFileToString(AppDomain.CurrentDomain.BaseDirectory + @"Update\current.json");

            VZDownloadManager.getSingleton().setUpdateList(str, 2, str2);
        }
Esempio n. 2
0
        void updateVRZone()
        {
            if (updateList == null || updateList.Equals("") || updateList.Equals("\"\""))
            {
                getUpdateList();
            }
            if (VZDownloadManager.getSingleton().isUpdating())
            {
                return;
            }

            String currentJsonPath = AppDomain.CurrentDomain.BaseDirectory + @"Update\current.json";

            VZ_AppHelper.GetInstance().systemInfo.updateBuild = versionInfo.build;
            saveBuildInfo();
            VZDownloadManager.getSingleton().setUpdateList(updateList, versionInfo.build, VZMethods.readFileToString(currentJsonPath));
            VZDownloadManager.getSingleton().start(null);
        }