Example #1
0
 private async void ProgressHandler(WebDavProgress progressInfo)
 {
     await CoreApplication.MainView.CoreWindow.Dispatcher.RunAsync(CoreDispatcherPriority.Normal, () =>
     {
         BytesTotal      = progressInfo.TotalBytes;
         BytesDownloaded = (int)progressInfo.Bytes;
     });
 }
Example #2
0
 private void Progress_ProgressChanged(object sender, WebDavProgress e)
 {
     // Do not report every single update of the progress.
     if (e.Bytes - previous > 1024)
     {
         previous = e.Bytes;
         StatusBar.SetProgress((double)e.Bytes / e.TotalBytes * 100);
     }
 }
Example #3
0
        private async void ProgressHandler(WebDavProgress progressInfo)
        {
            await CoreApplication.MainView.CoreWindow.Dispatcher.RunAsync(CoreDispatcherPriority.Normal, () =>
            {
                BytesTotal = (long)progressInfo.TotalBytes;
                BytesSend  = (int)progressInfo.Bytes;

                WaitingForServerResponse = BytesSend == BytesTotal;
            });
        }
Example #4
0
 private void ProgressHandler(WebDavProgress progressInfo)
 {
     // progress
 }