public void OnStatusChanged(object sender, DownloadStatusEventArgs e) { if (!this.Dispatcher.CheckAccess()) { this.Dispatcher.Invoke(System.Windows.Threading.DispatcherPriority.Normal, new DownloadStatusChangedEventHandler((s, e2) => { OnStatusChanged(s, e2); }), sender, e); return; } loader.Maximum = e.MaxProgress; loader.Value = e.Progress; }
public void OnStatusChanged(object sender, DownloadStatusEventArgs e) { Object.OnStatusChanged(sender, e); }
public void OnStatusChanged(object sender, DownloadStatusEventArgs e) { if (!this.Dispatcher.CheckAccess()) { this.Dispatcher.Invoke(System.Windows.Threading.DispatcherPriority.Normal, new DownloadStatusChangedEventHandler((s, e2) => { OnStatusChanged(s, e2); }), sender, e); return; } switch (e.Code) { case DMODownloadStatusCode.GETTING_GUILD: { LoadProgressStatus.Text = LanguageManager.Model.CommSearchingGuild; break; } case DMODownloadStatusCode.GETTING_TAMER: { LoadProgressStatus.Text = string.Format(LanguageManager.Model.CommGettingTamer, e.Info); break; } } LoadProgressBar.Maximum = e.MaxProgress; LoadProgressBar.Value = e.Progress; }