public override void PopulateTooltip(int index) { ToolTip.ClearData(); DetectionPlotData.DataSet targetData = _detectionData.GetTargetData(Settings.TargetType); ToolTip.AddLine(Resources.DetectionHistogramPane_Tooltip_ReplicateCount, index.ToString(CultureInfo.CurrentCulture)); ToolTip.AddLine(String.Format(Resources.DetectionHistogramPane_Tooltip_Count, Settings.TargetType.Label), targetData.Histogram[index].ToString(CultureInfo.CurrentCulture)); }
public override void PopulateTooltip(int index) { ToolTip.ClearData(); var targetData = _detectionData.GetTargetData(Settings.TargetType); ToolTip.AddLine(Resources.DetectionPlotPane_Tooltip_Replicate, _detectionData.ReplicateNames[index]); ToolTip.AddLine(string.Format(Resources.DetectionPlotPane_Tooltip_Count, Settings.TargetType.Label), targetData.TargetsCount[index].ToString(CultureInfo.CurrentCulture)); ToolTip.AddLine(Resources.DetectionPlotPane_Tooltip_CumulativeCount, targetData.TargetsCumulative[index].ToString(CultureInfo.CurrentCulture)); ToolTip.AddLine(Resources.DetectionPlotPane_Tooltip_AllCount, targetData.TargetsAll[index].ToString(CultureInfo.CurrentCulture)); var qString = @"-Inf"; if (targetData.QMedians[index] > 0) { qString = (-Math.Log10(targetData.QMedians[index])).ToString(@"F1", CultureInfo.CurrentCulture); } ToolTip.AddLine(Resources.DetectionPlotPane_Tooltip_QMedian, qString); }