Exemplo n.º 1
0
 public static void Synchronize(GuiSynchronizeHandler handler, Object data)
 {
     if (Application.Current != null && handler != null)
     {
         Application.Current.Dispatcher.BeginInvoke(
             (Action)(() => { handler(data); })
             );
     }
 }
Exemplo n.º 2
0
 public static void Synchronize(GuiSynchronizeHandler handler, Object data)
 {
     if (Application.Current != null && handler != null)
     {
         Application.Current.Dispatcher.BeginInvoke(
             (Action)(() => { handler(data); })
         );
     }
 }