private void BoardControl_MouseUp(object sender, MouseEventArgs e) { _mousePressed = false; if (_mousePressedDrawable == null) { return; } _mousePressedDrawable.SetMousePressed(false, e.X, e.Y); Refresh(); if (_mousePressedDrawable == _mouseOverWhilePressedDrawable) { _mousePressedDrawable.MouseClick(e.X, e.Y); } _mousePressedDrawable = null; }