private void OnProfileChanged(object sender, BaseEventArgs e) {
if (!this.Dispatcher.CheckAccess()) {
this.Dispatcher.Invoke(System.Windows.Threading.DispatcherPriority.Normal, new BaseEventHandler((s, e2) => {
OnProfileChanged(sender, e2);
}), sender, e);
return;
}
StartButton.IsEnabled = false;
StartButton.SetBinding(Button.ContentProperty, WaitingButtonBinding);
CheckWorker.RunWorkerAsync();
}