Пример #1
0
        /// <summary>
        ///     Show the tooltip with the TrayIcon
        /// </summary>
        public void SetIconText()
        {
            var tooltipInfo = _tooltipInfoFactory.Get(CurrentTooltipInfo);
            var text        = tooltipInfo.TextToDisplay();

            if (text == null)
            {
                return;
            }
            Fixes.SetNotifyIconText(_icon, $"{Application.ProductName}\n{text}");
        }
Пример #2
0
        /// <summary>
        ///     Show the tooltip with the TrayIcon
        /// </summary>
        public void ShowTooltipInfo()
        {
            if (IsBallontipVisible)
            {
                return;
            }

            var tooltipInfo = _tooltipInfoFactory.Get(CurrentTooltipInfo);
            var text        = tooltipInfo.TextToDisplay();

            if (text == null)
            {
                return;
            }
            Fixes.SetNotifyIconText(_icon, $"{Application.ProductName}\n{text}");

            //_icon.ShowBalloonTip(1000, $"{Application.ProductName}: {TooltipInfo.titleTooltip}", text, ToolTipIcon.Info)
        }