Beispiel #1
0
 /// <summary>
 /// Invokes an action in the GUI thread
 /// </summary>
 /// <param name='action'>
 /// The action to execute.
 /// </param>
 public static void Invoke(Action action)
 {
     engine.Invoke(delegate {
         try {
             Toolkit.EnterUserCode();
             action();
             Toolkit.ExitUserCode(null);
         } catch (Exception ex) {
             Toolkit.ExitUserCode(ex);
         }
     });
 }
Beispiel #2
0
 public static void Invoke(Action action)
 {
     engine.Invoke(action);
 }