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