Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private void Rectangle_MouseLeftButtonDown_6(object sender, MouseButtonEventArgs e)
- {
- WebClient webClient = new WebClient();
- webClient.DownloadStringCompleted += Completed;
- webClient.DownloadFileCompleted += new AsyncCompletedEventHandler(Completed);
- webClient.DownloadProgressChanged += new DownloadProgressChangedEventHandler(ProgressChanged);
- webClient.DownloadFileAsync(new Uri("http://prodigygaming.comxa.com/updates/redacted.zip"), @"./redacted.zip");
- filcheck.Text = "Download in procces";
- }
- private void ProgressChanged(object sender, DownloadProgressChangedEventArgs e)
- {
- pbStatus.Value = e.ProgressPercentage;
- }
- private void Completed(object sender, AsyncCompletedEventArgs e)
- {
- MessageBox.Show("Download completed!");
- pbStatus.Visibility = Visibility.Hidden;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement