void deployment_DownloadFileGroupCompleted(object sender, DownloadFileGroupCompletedEventArgs e) { if (e.Error != null) { downloadStatus.Text = "Could not download files. Will try again later."; return; } else if (e.Cancelled) { downloadStatus.Text = "The file download has been cancelled."; return; } downloadStatus.Text = String.Format("Download of file group {0} complete.", e.Group); }
private void ad_DownloadFileGroupCompleted(object sender, DownloadFileGroupCompletedEventArgs e) { label1.Text = string.Format("Téléchargement de {0} {1}.", e.Group, e.Cancelled ? "annulé" : "terminé"); completed = true; // on peut fermer la fenêtre button1.Enabled = true; button1.Text = "Fermer"; button1.Focus(); if (autoClose) { System.Threading.Thread.Sleep(5); button1_Click(null, null); } }
// DownloadFileGroupCompleted, so update the progress dialog and the main form private void OnDownloadFileGroupCompleted(object sender, DownloadFileGroupCompletedEventArgs e) { if (e.Error == null) { _progressForm.SetProgressCompleted(true); switch ((string)e.UserState) { case "customer": customerLocalBox.Text = "True"; ShowCustomers(); break; case "order": orderLocalBox.Text = "True"; ShowOrders(); break; } } else { _progressForm.SetProgressCompleted(false); } }
private void SynchronizeGroupCompletedEventHandler(object sender, SynchronizeCompletedEventArgs e) { try { DeploymentManager manager1 = (DeploymentManager) sender; Exception error = e.Error; } catch (Exception exception) { if (ExceptionUtility.IsHardException(exception)) { throw; } } finally { DownloadFileGroupCompletedEventArgs args = new DownloadFileGroupCompletedEventArgs(e.Error, e.Cancelled, e.UserState, e.Group); DownloadFileGroupCompletedEventHandler handler = (DownloadFileGroupCompletedEventHandler) this.Events[downloadFileGroupCompletedKey]; if (handler != null) { handler(this, args); } } }
private void CurrentDeploymentOnDownloadFileGroupCompleted(object sender, DownloadFileGroupCompletedEventArgs args) { if (args.Group == this.groupName) { this.downloadComplete(new AssemblyFileLanguagePack(GroupNameToDllLocation(this.groupName))); } var d = ApplicationDeployment.CurrentDeployment; d.DownloadFileGroupProgressChanged -= this.CurrentDeploymentOnDownloadFileGroupProgressChanged; d.DownloadFileGroupCompleted -= this.CurrentDeploymentOnDownloadFileGroupCompleted; }
private void applicationDeployment_DownloadFileGroupCompleted(object sender, DownloadFileGroupCompletedEventArgs e) { System.Windows.MessageBox.Show("applicationDeployment_DownloadFileGroupCompleted event is called..."); }