void deployment_UpdateCompleted(object sender, AsyncCompletedEventArgs e) { if (e.Error != null) { Debug.WriteLine(e.ToString()); return; } MainWindow w = this.windows[0]; w.UpdateAvailableLabel.Visibility = Visibility.Hidden; }
private void DownloadFileCallback2(Object sender, AsyncCompletedEventArgs e) { string reply = e.ToString(); Log.Debug("Device CGI returned info: " + reply); }
private void smtpClient_SendCompleted(object sender, AsyncCompletedEventArgs e) { try { if (e.Cancelled) { result = "发送已取消!"; } if (e.Error != null) { result = "邮件发送失败!" + "\n" + "技术信息:\n" + e.ToString(); } else { result = "邮件成功发出!"; } } catch (Exception Ex) { result = "邮件发送失败!" + "\n" + "技术信息:\n" + Ex.Message; } }