/// <summary>
 /// Static initialization.  Called once per AppDomain.
 /// </summary>
 static ApplicationIdleTimer()
 {
     // Create the singleton.
     if (instance==null)
     {
         instance = new ApplicationIdleTimer();
     }
 }
Beispiel #2
0
 /// <summary>
 /// Static initialization.  Called once per AppDomain.
 /// </summary>
 static ApplicationIdleTimer()
 {
     // Create the singleton.
     if (instance == null)
     {
         instance = new ApplicationIdleTimer();
     }
 }
Beispiel #3
0
 private void App_Idle(ApplicationIdleTimer.ApplicationIdleEventArgs e)
 {
     tsLabelStatus.Text = string.Format("Idle: {0}s", e.IdleDuration.TotalSeconds.ToString("0"));
     tsLabelStatus.BackColor = Color.LightCyan;
     if (e.IdleDuration.Minutes > CONFIGURED_IDLE_TIME && !appProcessing) {
         //FrontendUtils.SendUsageNotification(loggedInUser + " was forced to exit by timer!");
         Application.Exit();
     }
 }
Beispiel #4
0
 private void App_Idle(ApplicationIdleTimer.ApplicationIdleEventArgs e)
 {
     this.lblStatus.BackColor = Color.Green;
     this.lblStatus.Text = string.Format("Idle: {0}s", e.IdleDuration.TotalSeconds.ToString("0"));
 }