コード例 #1
0
        /// <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));
            }
        }
コード例 #2
0
 //dowload em progresso
 void client_BackgroundDownloadProgressChanged(object sender, LiveDownloadProgressChangedEventArgs e)
 {
     txtbStatus.Text = "Baixando o arquivo, aguarde... " + e.ProgressPercentage.ToString()+" %";
 }
コード例 #3
0
 private void _clientFolder_DownloadProgressChanged(object sender, LiveDownloadProgressChangedEventArgs e)
 {
     LoadingValue = e.ProgressPercentage;
     LoadingText  = e.ProgressPercentage + "% Loading...";
 }