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