void OnIdleNotification( string guid, string since, string duration, UInt64 started, string description) { if (this.TryBeginInvoke(this.OnIdleNotification, guid, since, duration, started, description)) { return; } idleNotificationWindowController.ShowWindow(); }
void OnIdleNotification( string guid, string since, string duration, UInt64 started, string description) { if (InvokeRequired) { Invoke((MethodInvoker) delegate { OnIdleNotification(guid, since, duration, started, description); }); return; } idleNotificationWindowController.ShowWindow(); }