Exemplo 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);
        }
Exemplo 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);
        }