Exemplo n.º 1
0
        protected override void SetTooltip(PanelItem toolInfo)
        {
            var info = toolInfo as ProgramViewItem;

            if (info.TitleDrawErr == false && Settings.Instance.EpgToolTipNoViewOnly == true)
            {
                return;
            }

            Tooltip.ToolTip = ViewUtil.GetTooltipBlockStandard(CommonManager.ConvertProgramText(info.Data,
                                                                                                Settings.Instance.EpgExtInfoTooltip == true ? EventInfoTextMode.All : EventInfoTextMode.BasicText));
        }
Exemplo n.º 2
0
        protected override void SetTooltip(PanelItem toolInfo)
        {
            var info = toolInfo as ProgramViewItem;

            if (info.TitleDrawErr == false && this.EpgStyle().EpgToolTipNoViewOnly == true)
            {
                return;
            }

            string text = CommonManager.ConvertProgramText(info.Data, EventInfoTextMode.BasicInfo)
                          + CommonManager.ConvertProgramText(info.Data, EventInfoTextMode.BasicText);

            if (this.EpgStyle().EpgExtInfoTooltip)
            {
                text += CommonManager.TrimHyphenSpace(CommonManager.ConvertProgramText(info.Data, EventInfoTextMode.ExtendedText))
                        + CommonManager.ConvertProgramText(info.Data, EventInfoTextMode.PropertyInfo);
            }
            Tooltip.ToolTip = ViewUtil.GetTooltipBlockStandard(text.TrimEnd());
        }