Пример #1
0
        private void showToolTipForParameterValueField(PivotGridHitInfo hi, ToolTipControllerGetActiveObjectInfoEventArgs e)
        {
            var field = hi.CellInfo.DataField;

            if (field != _pivotGrid.ValueField)
            {
                return;
            }

            var ds      = hi.CellInfo.CreateDrillDownDataSource();
            var warning = ds.StringValue(PKSimConstants.PKAnalysis.Warning);

            if (string.IsNullOrEmpty(warning))
            {
                return;
            }

            var parameterDisplayName = ds.StringValue(PKSimConstants.PKAnalysis.ParameterDisplayName);
            var superToolTip         = _toolTipCreator.WarningToolTip(warning);

            e.Info = _toolTipCreator.ToolTipControlInfoFor(parameterDisplayName, superToolTip);
        }