void Updater_PackageInstallationComplete(object sender, PMU.Updater.PackageInstallationCompleteEventArgs e) { packageScroller.Buttons[e.PackageIndex].Installed = true; if (updateEngine.LastCheckResult.PackagesToUpdate.Count != e.PackageIndex + 1) { packageScroller.ScrollToButton(e.PackageIndex + 1); LoadPackageInfo(packageScroller.Buttons[e.PackageIndex + 1]); } }
void Updater_PackageDownloadStart(object sender, PMU.Updater.PackageDownloadStartEventArgs e) { lblUpdateFound.Text = "Package: " + e.Package.FullID; lblStatus.Hide(); pgbDownloadProgress.Show(); //UpdateStatus("Downloading..."); e.Download.DownloadUpdate += new EventHandler<FileDownloadingEventArgs>(Download_DownloadUpdate); e.Download.DownloadComplete += new EventHandler<FileDownloadingEventArgs>(Download_DownloadComplete); }