Пример #1
0
 private void downloader_DownloadVideoProgressBarChanged(object sender, ProgressEventArgs e)
 {
     VideoDownloadProgressBar.Invoke(new Action(delegate()
     {
         VideoDownloadProgressBar.Maximum++;
         VideoDownloadProgressBar.Value++;
         VideoDownloadProgressBar.Update();
     }));
 }
Пример #2
0
 private void downloader_DownloadVideoFinished(object sender, EventArgs e)
 {
     VideoDownloadProgressBar.Invoke(new Action(delegate()
     {
         VideoDownloadProgressBar.Maximum = 0;
         VideoDownloadProgressBar.Value   = 0;
         VideoDownloadProgressBar.Update();
         MessageBox.Show("Download Completed");
         DownloadVideoButton.Enabled = true;
     }));
 }