/// <summary>
        /// Determines whether the user is idle if the last user input was more than 10 minutes ago.
        /// </summary>
        /// <returns><c>True</c> if the user is idle, else <c>false</c>.</returns>
        private bool IsUserIdle()
        {
            var ticks = Environment.TickCount;

            var idleTime = ticks - NativeMethodsHelper.GetLastInputInfoTickCount();

            idleTime = ((idleTime > 0) ? (idleTime / 1000) : 0);

            return(idleTime > 600);  // idle for 10 minutes
        }