private async void ProgressHandler(WebDavProgress progressInfo) { await CoreApplication.MainView.CoreWindow.Dispatcher.RunAsync(CoreDispatcherPriority.Normal, () => { BytesTotal = progressInfo.TotalBytes; BytesDownloaded = (int)progressInfo.Bytes; }); }
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); } }
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; }); }
private void ProgressHandler(WebDavProgress progressInfo) { // progress }