Beispiel #1
0
 protected virtual void OnDownloadFileProcess(WebReaderProcessEventArgs e)
 {
     if (DownloadFileProcess != null)
     {
         DownloadFileProcess(this, e);
     }
 }
Beispiel #2
0
 private void WebReader_DownloadFileProcess(object sender, WebReaderProcessEventArgs e)
 {
     if (this.InvokeRequired)
     {
         this.Invoke(new WebReaderProcessEventHandler(WebReader_DownloadFileProcess), sender, e);
     }
     else
     {
         _progressBar.Maximum = e.Total;
         _progressBar.Value   = e.Current;
     }
 }