private bool tryInvoke(OnWatchServer watcher) { if (this.InvokeRequired) { return((bool)this.Invoke(watcher)); } else { return(watcher()); } }
private bool tryInvoke(OnWatchServer watcher) { if (this.InvokeRequired) return (bool)this.Invoke(watcher); else return watcher(); }