Beispiel #1
0
 private void uploadBox_UploadError(object sender, UploadErrorEventArgs e)
 {
     MessageBox.Show(String.Format("{0}?", e.Error), "Warning",
                     MessageBoxButtons.YesNo,
                     MessageBoxIcon.Warning,
                     new EventHandler(uploadBox_ErrorClick));
 }
 protected async System.Threading.Tasks.Task Upload0Error(UploadErrorEventArgs args)
 {
     NotificationService.Notify(new NotificationMessage()
     {
         Severity = NotificationSeverity.Error, Summary = $"File Upload failed", Detail = $"{args.Message}", Duration = 20
     });
 }
 protected Task OnErrorHandler(UploadErrorEventArgs e)
 {
     ShowError    = true;
     ErrorMessage = e.Request.ResponseText;
     return(Task.CompletedTask);
 }
 private void OnUploadError(UploadErrorEventArgs e)
 {
     UploadError?.Invoke(this, e);
 }
 public void Error(UploadErrorEventArgs args)
 {
     NotificationService.Notify(NotificationSeverity.Error, "Failed: " + args.Message);
 }