public void OnDownloadStarted(object sender, BaseEventArgs e)
{
if (!this.Dispatcher.CheckAccess()) {
this.Dispatcher.Invoke(System.Windows.Threading.DispatcherPriority.Normal, new BaseEventHandler((s, e2) => {
OnDownloadStarted(s, e2);
}), sender, e);
return;
}
BlockControls(true);
LoadProgressBar.Value = 0;
LoadProgressBar.Maximum = 100;
LoadProgressStatus.Text = string.Empty;
ProgressBlock.Visibility = System.Windows.Visibility.Visible;
}