private void PackageManager_PackageDownloaded(PackageManager sender, Package target) { this.webBrowser1.Document.InvokeScript("UpdatePackageLocalInstallStatus", new object[] { JSON.JsonEncode(target.ToHashTable()), PackageManager.PACKAGE_STATUSCODE_DOWNLOADSUCCESS, "Downloaded" }); }
private void PackageManager_PackageAwaitingRestart(PackageManager sender, Package target) { this.webBrowser1.Document.InvokeScript("UpdatePackageLocalInstallStatus", new object[] { JSON.JsonEncode(target.ToHashTable()), PackageManager.PACKAGE_STATUSCODE_INSTALLQUEUED, "Restart" }); }
// Installed // New Update Available // Error downloading/unzipping // Local // (spin) Downloading -> (check) Downloaded // (spin) Installing -> (check) Installed // (orange) You must restart // Layer // (check) Issuing update requests // 127.0.0.1:44453 downloading package // (warning) 1.1.1.1:00482 package already installed // (check) 127.0.0.1:44453 Package downloaded - Restart required #region Local Package Management private void PackageManager_RemotePackagesUpdated(PackageManager sender) { this.webBrowser1.Document.InvokeScript("UpdatePackageList", new object[] { sender.RemoteToJsonString() }); }