Example #1
0
 private void DownloadHandler_DownloadProgressComplete(object sender, DownloadEventArgs e)
 {
     this.Invoke(new MethodInvoker(delegate
     {
         this.Height = 140;
         this.controlsPanel.Controls.Clear();
         this.controlsPanel.Controls.Add(this.statusControl);
     }));
 }
Example #2
0
 private void DownloadHandler_DownloadProgressChanged(object sender, DownloadEventArgs e)
 {
     this.Invoke(new MethodInvoker(delegate
     {
         this.downloadControl.SetProcessValue(e.ProgressPercentage);
         this.downloadControl.SetPercentage(e.ProgressPercentage);
         this.downloadControl.SetDownloadedMegaBytes(e.DownloadedText);
     }));
 }