示例#1
0
 public override bool MouseLeftUp(int x, int y)
 {
     if (_drawable == null)
     {
         return(false);
     }
     return(_drawable.MouseLeftUp(x, y));
 }
示例#2
0
        public bool MouseLeftUp(int x, int y)
        {
            _rect.MouseLeftUp(x, y);

            if (_target == null)
            {
                return(false);
            }
            else
            {
                return(_target.MouseLeftUp(x, y));
            }
        }
示例#3
0
        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;
            }
        }