/// <summary> /// Event handler called when a download progress event is fired. /// </summary> /// <param name="sender">The object that fires the event.</param> /// <param name="e">The event arg containing the progress of the download operation.</param> private static void OnDownloadProgressChanged(object sender, LiveDownloadProgressChangedEventArgs e) { var state = e.UserState as OperationState <Stream>; if (state.Progress != null) { state.Progress.Report(new LiveOperationProgress(e.BytesReceived, e.TotalBytesToReceive)); } }
//dowload em progresso void client_BackgroundDownloadProgressChanged(object sender, LiveDownloadProgressChangedEventArgs e) { txtbStatus.Text = "Baixando o arquivo, aguarde... " + e.ProgressPercentage.ToString()+" %"; }
private void _clientFolder_DownloadProgressChanged(object sender, LiveDownloadProgressChangedEventArgs e) { LoadingValue = e.ProgressPercentage; LoadingText = e.ProgressPercentage + "% Loading..."; }