public override bool MouseLeftUp(int x, int y) { if (_drawable == null) { return(false); } return(_drawable.MouseLeftUp(x, y)); }
public bool MouseLeftUp(int x, int y) { _rect.MouseLeftUp(x, y); if (_target == null) { return(false); } else { return(_target.MouseLeftUp(x, y)); } }
private void D3DContent_MouseUp(object sender, MouseEventArgs e) { switch (e.Button) { case MouseButtons.Left: m_leftDown = false; if (_drawable.MouseLeftUp(e.X, e.Y)) { Invalidate(); } break; case MouseButtons.Middle: m_middleDown = false; if (_drawable.MouseMiddleUp(e.X, e.Y)) { Invalidate(); } break; case MouseButtons.Right: m_rightDown = false; if (_drawable.MouseRightUp(e.X, e.Y)) { Invalidate(); } break; } if (!m_leftDown && !m_middleDown && !m_rightDown) { Capture = false; } }