private void OnErrorOccurred(UploadErrorOccurredEventArgs e) { EventHandler <UploadErrorOccurredEventArgs> handler = ErrorOccurred; if (handler != null) { handler(this, e); } }
private void fileUploader_UploadErrorOccurred(object sender, UploadErrorOccurredEventArgs e) { UIDispatcher.BeginInvoke(delegate { // leave the file stream open if an upload caused an error, in case the UI allows re-sending _fileUploader = null; this.ErrorMessage = e.ErrorMessage; this.State = Constants.FileStates.Error; }); }
void _files_ErrorOccurred(object sender, UploadErrorOccurredEventArgs e) { // not sure why this is necessary sometimes... the progress bar will get stuck after an error sometimes _files_PercentageChanged(sender, null); }
private void fileUploader_UploadErrorOccurred(object sender, UploadErrorOccurredEventArgs e) { UIDispatcher.BeginInvoke(delegate { // leave the file stream open if an upload caused an error, in case the UI allows re-sending _fileUploader = null; this.ErrorMessage = e.ErrorMessage; this.State = Constants.FileStates.Error; }); }
private void OnUploadErrorOccurred(UploadErrorOccurredEventArgs e) { EventHandler<UploadErrorOccurredEventArgs> handler = UploadErrorOccurred; if (handler != null) handler(this, e); }
void _files_ErrorOccurred(object sender, UploadErrorOccurredEventArgs e) { // not sure why this is necessary sometimes... the progress bar will get stuck after an error sometimes _files_PercentageChanged(sender, null); }