public bool MouseUp(int x, int y)
{
if (Enabled && _pressed)
{
if (_toolTip != null)
{
_toolTip.SetShowing(false);
}
_pressed = false;
if (x >= _xPos && x < _xPos + _width && y >= _yPos && y < _yPos + _height)
{
if (_timeSinceClick < 0.3)
{
_doubleClicked = true;
}
_timeSinceClick = 0;
return true;
}
}
return false;
}