void MouseButtonUp(Point screenLocation) { if (_captured) { _captured = false; Win32Helper.ReleaseCapture(); return; } // This delay check of 500 ms is inserted to prevent the double-click on the formula list to also be processed // as a click on the toolip, launching the help erroneously. var nowTicks = DateTime.UtcNow.Ticks; if (nowTicks - _showTimeTicks < 5000000) { return; } var inLink = _linkClientRect.Contains(PointToClient(screenLocation)); if (inLink) { LaunchLink(_linkAddress); } }
void MouseButtonUp(Point screenLocation) { if (_captured) { _captured = false; Win32Helper.ReleaseCapture(); return; } var inLink = _linkClientRect.Contains(PointToClient(screenLocation)); if (inLink) { LaunchLink(_linkAddress); } }