private void DownloaderOnDownloadComplete(object sender, DownloaderCompleteEventArgs downloaderCompleteEventArgs) { bool successful = downloaderCompleteEventArgs.Successful; if (successful) { successful = ActionStarter.CleanAndZipAction(_settings.DirectoryToClear, _settings.SaveFile, _settings.ExtractionPath); } if (!successful) { Close(); Messaging.AlertError("Clean and unzip failed", Settings.UserAppPath); Succeeded = false; return; } else { Succeeded = true; pbValue.BeginInvoke(new Action(HandleDownloadSucceeded)); } }