private void OnProfileChangedInternal(object sender, BaseEventArgs e)
{
if (!this.Dispatcher.CheckAccess()) {
this.Dispatcher.Invoke(System.Windows.Threading.DispatcherPriority.Normal, new BaseEventHandler((s, e2) => {
OnProfileChangedInternal(sender, e2);
}), sender, e);
return;
}
OnProfileChanged(sender, e);
}