private bool LabelMouseDown(PointF imagePoint, long currentTimestamp, ImageToViewportTransformer transformer) { bool hitExisting = false; foreach (DrawingText label in metadata.Labels()) { int hit = label.HitTest(imagePoint, currentTimestamp, metadata.CalibrationHelper.DistortionHelper, transformer, metadata.CoordinateSystem.Zooming); if (hit >= 0) { hitExisting = true; label.SetEditMode(true, transformer); } } return(hitExisting); }