Beispiel #1
0
 private bool tryInvoke(OnWatchServer watcher)
 {
     if (this.InvokeRequired)
     {
         return((bool)this.Invoke(watcher));
     }
     else
     {
         return(watcher());
     }
 }
Beispiel #2
0
 private bool tryInvoke(OnWatchServer watcher)
 {
     if (this.InvokeRequired)
         return (bool)this.Invoke(watcher);
     else return watcher();
 }