Add progress bar to GetDictionaries form

This commit is contained in:
HimbeersaftLP 2019-10-23 18:46:08 +02:00
parent a7aacf3cfe
commit e8965768df
No known key found for this signature in database
GPG Key ID: 981C083C607DF716

View File

@ -146,6 +146,10 @@ namespace Nikse.SubtitleEdit.Forms
var wc = new WebClient { Proxy = Utilities.GetProxy() }; var wc = new WebClient { Proxy = Utilities.GetProxy() };
wc.DownloadDataCompleted += wc_DownloadDataCompleted; wc.DownloadDataCompleted += wc_DownloadDataCompleted;
wc.DownloadProgressChanged += (o, args) =>
{
labelPleaseWait.Text = Configuration.Settings.Language.General.PleaseWait + " " + args.ProgressPercentage + "%";
};
wc.DownloadDataAsync(new Uri(url)); wc.DownloadDataAsync(new Uri(url));
} }
catch (Exception exception) catch (Exception exception)