Exemple #1
0
 private void HttpDownloader_ProgressChanged(object sender, AltoHttp.ProgressChangedEventArgs e)
 {
     progressBar.Value  = (int)e.Progress;
     lblPercent.Text    = $"{e.Progress.ToString("0.00")} %";
     lblSpeed.Text      = string.Format("{0} MB/s", (e.SpeedInBytes / 1024d).ToString("0.00"));
     lblDownloaded.Text = string.Format("{0} MB/s", (httpDownloader.TotalBytesReceived / 1024d / 1024d).ToString("0.00"));
     lblStatus.Text     = "Downloading...";
 }
 private void HttpDownloader_ProgressChanged(object sender, AltoHttp.ProgressChangedEventArgs e)
 {
     dnld_prgrss.Value = (int)e.Progress;
     prctng_lbl.Text   = $"{e.Progress.ToString("0.00")} %";
     speed_lbl.Text    = string.Format("{0} MB/s", (e.SpeedInBytes / 1024d / 1024d).ToString("0.00"));
     dnld_lbl.Text     = string.Format("{0} MB/s", (httpdownloader.TotalBytesReceived / 1024d / 1024d).ToString("0.00"));
     status_lbl.Text   = "downloading.....";
 }
Exemple #3
0
 void downloader_ProgressChanged(object sender, AltoHttp.ProgressChangedEventArgs e)
 {
     lblTotalBytesReceived.Text = string.Format("{0} / {1}",
                                                e.TotalBytesReceived,
                                                downloader.Info.Length);
     lblProgress.Text = e.Progress.ToString("0.00") + "%";
     lblSpeed.Text    = e.SpeedInBytes.ToHumanReadableSize() + "/s";
 }
Exemple #4
0
 void downloader_ProgressChanged(object sender, AltoHttp.ProgressChangedEventArgs e)
 {
     lblTotalBytesReceived.Text = string.Format("{0} / {1}",
                                                e.TotalBytesReceived.ToHumanReadableSize(),
                                                downloader.Info.Length > 0 ? downloader.Info.Length.ToHumanReadableSize() : "Unknown");
     lblProgress.Text  = e.Progress.ToString("0.00") + "%";
     lblSpeed.Text     = e.SpeedInBytes.ToHumanReadableSize() + "/s";
     progressBar.Value = (int)(e.Progress * 100);
 }
Exemple #5
0
 private void HttpDownloader_ProgressChanged(object sender, AltoHttp.ProgressChangedEventArgs e)
 {
     progressBar.Value = (int)e.Progress;
 }