public static void UploadDownloadProgress(Object sender, FileDataTransferEventArgs e) { // print a dot Console.Write("."); // it's ok to go forward e.Cancel = false; }
static void UploadDownloadProgress(Object sender, FileDataTransferEventArgs e) { // print a dot System.Diagnostics.Debug.WriteLine(e.PercentageProgress); // Need to show this on a label or return to front end somehow ProgressInformer.Progress = e.PercentageProgress.ToString(); e.Cancel = false; }
private void FileOperationProgressChangedAsyncHandler(object sender, FileDataTransferEventArgs e) { var ctx = e.CustomnContext as BaseFileEntryDataTransferAsyncContext; // define the thread ThreadPool.QueueUserWorkItem((object state) => { // change the transferevent args var eAsync = e.Clone() as FileDataTransferEventArgs; ctx.ProgressCallback(sender, eAsync); }); }
public void OnUploadProgressChanged(object sender, FileDataTransferEventArgs e) { UploadProgress = (byte)e.PercentageProgress; e.Cancel = Cancel; }