private void ArtifactWorker_RunWorkerCompleted(object sender, RunWorkerCompletedEventArgs e) { if (null != e.Error) { IsFetching = false; FetchText = "Fetch"; _messageBoxService.ShowErrorDispatch(e.Error.Message, "Mass Download Error"); return; } var downloader = (MassDownload)e.Result; this.Log = String.Copy(downloader.LogText); var dbChanges = downloader.DatabaseChanges; downloader.Dispose(); IsFetching = false; FetchText = "Fetch"; var cancelled = this.CancelPending; if (!cancelled && dbChanges.HasChanges) { this.Packager = IoC.Get <DatabasePackagerViewModel>(); this.Packager.Changes = dbChanges; this.Packager.SaveCommand.Execute(null); } ReCalculateCommands(); this.CancelPending = false; }