示例#1
0
 private void Handler(ApplicationIdle applicationIdle)
 {
     if (_options.TaskboardPath != null)
     {
         ((ICommand)_openTaskBoardCommand).Execute(_options.TaskboardPath);
     }
 }
示例#2
0
        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 });
            }
        }
示例#3
0
 private static void OnApplicationIdle()
 {
     ApplicationIdle?.Invoke(MainViewModel, new EventArgs());
 }