Exemple #1
0
 protected virtual void OnStartDownload(StartDownloadEventArgs e)
 {
     if (StartedDownload != null)
     {
         StartedDownload(this, e);
     }
 }
 private void Patcher_StartedDownload(object sender, StartDownloadEventArgs e)
 {
     PbProgressPerformStep();
     TxtLogAppendText(String.Format("Downloading File..... {0} ({1})\r\n", e.Filename, e.Filesize.ToString(CultureInfo.InvariantCulture)));
     pbFileProgress.Maximum = 100;
     PbFileProgressSetValueStep(0);
 }
 protected virtual void OnStartDownload(StartDownloadEventArgs e)
 {
     if (StartedDownload != null)
         StartedDownload(this, e);
 }
 private void Patcher_StartedDownload(object sender, StartDownloadEventArgs e)
 {
     PbProgressPerformStep();
     TxtLogAppendText(String.Format("Downloading File..... {0} ({1})\r\n", e.Filename, e.Filesize.ToString(CultureInfo.InvariantCulture)));
     pbFileProgress.Maximum = 100;
     PbFileProgressSetValueStep(0);
 }