Exemplo n.º 1
0
 /// <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);
 }
Exemplo n.º 2
0
        void downloader_ProgressChanged(object sender, ProgressEventArgs e)
        {
            progressBar1.Value = e.Current;
            progressBar1.Maximum = e.Total;

            label1.Text = e.Current.ToString() + "/" + e.Total.ToString();
        }