Ejemplo n.º 1
0
        private void OnErrorOccurred(UploadErrorOccurredEventArgs e)
        {
            EventHandler <UploadErrorOccurredEventArgs> handler = ErrorOccurred;

            if (handler != null)
            {
                handler(this, e);
            }
        }
Ejemplo n.º 2
0
        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;
            });
        }
Ejemplo n.º 3
0
 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);
 }
Ejemplo n.º 4
0
        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;
            });
        }
Ejemplo n.º 5
0
 private void OnUploadErrorOccurred(UploadErrorOccurredEventArgs e)
 {
     EventHandler<UploadErrorOccurredEventArgs> handler = UploadErrorOccurred;
     if (handler != null)
         handler(this, e);
 }
Ejemplo n.º 6
0
 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);
 }