Пример #1
0
        private void onToolTipControllerGetActiveObjectInfo(object sender, ToolTipControllerGetActiveObjectInfoEventArgs e)
        {
            if (e.SelectedControl != gridViewMessages.GridControl)
            {
                return;
            }

            var hi = gridViewMessages.CalcHitInfo(e.ControlMousePosition);

            if (hi.Column == null)
            {
                return;
            }
            if (!hi.InRowCell)
            {
                return;
            }

            var notification = _gridViewBinder.ElementAt(hi.RowHandle);

            if (notification == null)
            {
                return;
            }

            //check if subclass want to display a tool tip as well
            var superToolTip = _toolTipCreator.ToolTipFor(notification.NotificationMessage);

            if (superToolTip == null)
            {
                return;
            }

            //An object that uniquely identifies a row cell
            e.Info = new ToolTipControlInfo(notification, string.Empty)
            {
                SuperTip = superToolTip, ToolTipType = ToolTipType.SuperTip
            };
        }
 private SuperToolTip getToolTipFor(ParameterDTO parameterDTO)
 {
     return(_toolTipCreator.ToolTipFor(parameterDTO));
 }