private void Handler(ApplicationIdle applicationIdle) { if (_options.TaskboardPath != null) { ((ICommand)_openTaskBoardCommand).Execute(_options.TaskboardPath); } }
private void OnApplicationIdle() { // Check to see if anyone cares. if (ApplicationIdle == null) { return; } // Build the message ApplicationIdleEventArgs e = new ApplicationIdleEventArgs(this.lastAppIdleTime); // Iterate over all listeners foreach (MulticastDelegate multicast in ApplicationIdle.GetInvocationList()) { // Raise the event multicast.DynamicInvoke(new object[] { e }); } }
private static void OnApplicationIdle() { ApplicationIdle?.Invoke(MainViewModel, new EventArgs()); }