/// <summary> /// Called when a progress is done /// </summary> /// <param name="e">Progress args</param> protected virtual void OnProgressChanged(ProgressEventArgs e) { if (ProgressChanged != null) ProgressChanged(this, e, (string)e.UserState); }
void downloader_ProgressChanged(object sender, ProgressEventArgs e) { progressBar1.Value = e.Current; progressBar1.Maximum = e.Total; label1.Text = e.Current.ToString() + "/" + e.Total.ToString(); }