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); })); }
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); })); }