void Model_NotifyProgress(object sender, ExtendedEventArgs <Action> e) { Dispatcher.BeginInvoke(System.Windows.Threading.DispatcherPriority.Background, new Action(() => { e.Data(); })); }
void Model_CountUpdated(object sender, ExtendedEventArgs <Action> e) { Dispatcher.BeginInvoke(DispatcherPriority.Background, new Action(() => { e.Data(); this.Refresh(); })); Application.Current.DoEvents(); }