public override bool GetToolTip(Pane pane, PointF location, float pixelSize, out string tipText, out string titleText)
{
CourseLayout activeCourse;
CourseView courseView = selectionMgr.ActiveCourseView;
if (pane == Pane.Map) {
activeCourse = controller.GetCourseLayout();
}
else {
activeCourse = controller.GetTopologyLayout();
}
CourseObj touchedObject = activeCourse.HitTest(location, pixelSize, CourseLayer.MainCourse, null);
if (touchedObject == null)
touchedObject = activeCourse.HitTest(location, pixelSize, CourseLayer.Descriptions, null);
if (touchedObject != null) {
TextPart[] textParts = SelectionDescriber.DescribeCourseObject(symbolDB, eventDB, touchedObject, courseView.ScaleRatio);
ConvertTextPartsToToolTip(textParts, out tipText, out titleText);
return true;
}
else {
tipText = titleText = "";
return false;
}
}