//call for idle time
 public void callForIdletime()
 {
     _clientIdleHandler = new ClientIdleHandler();
     _clientIdleHandler.Start();
     //start timer
     dispatcherTimer          = new DispatcherTimer();
     dispatcherTimer.Tick    += TimerTick;
     dispatcherTimer.Interval = new TimeSpan(0, 0, 0, 10);
     dispatcherTimer.Start();
 }
Exemple #2
0
        private void WindowLoaded(object sender, RoutedEventArgs e)
        {
            if (App.Arguments != null && App.Arguments.Length > 0)
            {
                ProcessCommandLineArgs(App.Arguments);
            }

            //start client idle hook
            _clientIdleHandler = new ClientIdleHandler();
#if NO_HOOKS
            //if debugging other parts of program and no hooks are necessary
#else
            _clientIdleHandler.Start();
#endif
        }