private void ShortCycleTimer_Elapsed(object sender, EventArgs e)
        {
            Application.Current.Dispatcher.Invoke(new Action(() =>
            {
                isShortIntervalTimerDone = true;
                bool isPopupOpen         = false;

                if (taskbarIcon.CustomBalloon != null)
                {
                    isPopupOpen = taskbarIcon.CustomBalloon.IsOpen;
                }

                if (settings.ShouldBreakWhenFullScreen && FullScreenDetect.IsFullscreenAppRunning(out foreProc) ||
                    isPopupOpen)
                {
                    ResetTimers(settings.LongIntervalTime, settings.ShortIntervalTime);
                }
                else
                {
                    if (settings.IsNotificationEnabled)
                    {
                        ShowNotificationPopup(PRE_SHORT_BREAK_POPUP_TEXT, shortBreakPostponeCount);
                    }
                    else
                    {
                        bool isLongBreak = false; // Needed for the decision to lock the machine
                        ShowViewBlocker(settings.ShortDisplayTime, settings.Scaling,
                                        settings.IsShortSkippable, settings.IsFullscreenBreak,
                                        settings.IsLongBreakLocksScreen, isLongBreak, settings.GetShortQuote());
                    }
                }
            }));
        }
        private void LongCycleTimer_Elapsed(object sender, EventArgs e)
        {
            isLongIntervalTimerDone = true;
            SetTaskbarTooltip((settings.LongIntervalTime.TotalMinutes) + TOOLTIP_LONG_MSG);

            if (settings.ShouldBreakWhenFullScreen && FullScreenDetect.IsFullscreenAppRunning(out foreProc))
            {
                ResetTimers(settings.LongIntervalTime, settings.ShortIntervalTime);
            }
            else
            {
                bool isLongBreak = true; // Needed for the decision to lock the machine

                // Handle the case when the user wants to have pre-break notifications
                if (settings.IsNotificationEnabled)
                {
                    ShowNotificationPopup(PRE_LONG_BREAK_POPUP_TEXT, longBreakPostponeCount);
                }
                else
                {
                    ShowViewBlocker(settings.LongDisplayTime, settings.Scaling,
                                    settings.IsLongSkippable, settings.IsFullscreenBreak,
                                    settings.IsLongBreakLocksScreen, isLongBreak, settings.GetLongQuote());
                }
            }
        }