Esempio n. 1
0
        public void HandleMouseUp(PrimaryMouseEventArgs mouseEventArgs)
        {
            _canvasViewport.FullMode = false;
            _topWinEventRoot.RootMouseUp(mouseEventArgs);
            UpdateCursor();

            PrepareRenderAndFlushAccumGraphics();
        }
 //static UIMouseButtons GetMouseButton(System.Windows.Forms.MouseButtons button)
 //{
 //    switch (button)
 //    {
 //        case MouseButtons.Left:
 //            return UIMouseButtons.Left;
 //        case MouseButtons.Right:
 //            return UIMouseButtons.Right;
 //        case MouseButtons.Middle:
 //            return UIMouseButtons.Middle;
 //        default:
 //            return UIMouseButtons.Left;
 //    }
 //}
 public void HandleMouseUp(int x, int y, UIMouseButtons b)
 {
     _canvasViewport.FullMode = false;
     _topWinEventRoot.RootMouseUp(
         x + _canvasViewport.ViewportX,
         y + _canvasViewport.ViewportY,
         b);
     if (_currentCursorStyle != _topWinEventRoot.MouseCursorStyle)
     {
         ChangeCursorStyle(_currentCursorStyle = _topWinEventRoot.MouseCursorStyle);
     }
     PrepareRenderAndFlushAccumGraphics();
 }
 public void HandleMouseUp(MouseEventArgs e)
 {
     canvasViewport.FullMode = false;
     topWinEventRoot.RootMouseUp(
         e.X + this.canvasViewport.ViewportX,
         e.Y + this.canvasViewport.ViewportY,
         GetMouseButton(e.Button));
     if (currentCursorStyle != this.topWinEventRoot.MouseCursorStyle)
     {
         ChangeCursorStyle(this.currentCursorStyle = this.topWinEventRoot.MouseCursorStyle);
     }
     PrepareRenderAndFlushAccumGraphics();
 }
Esempio n. 4
0
 public void HandleMouseUp(System.Windows.Forms.MouseEventArgs e)
 {
     _canvasViewport.FullMode = false;
     _topWinEventRoot.RootMouseUp(
         e.X + _canvasViewport.ViewportX,
         e.Y + _canvasViewport.ViewportY,
         GetMouseButton(e.Button));
     if (_currentCursorStyle != _topWinEventRoot.MouseCursorStyle)
     {
         ChangeCursorStyle(_currentCursorStyle = _topWinEventRoot.MouseCursorStyle);
     }
     PrepareRenderAndFlushAccumGraphics();
 }
        public void HandleMouseUp(System.Windows.Forms.MouseEventArgs e)
        {
            _canvasViewport.FullMode = false;
            UIMouseEventArgs mouseEventArgs = GetTranslatedUIMouseEventArgs(e);

            _topWinEventRoot.RootMouseUp(mouseEventArgs);

            if (_currentCursorStyle != mouseEventArgs.MouseCursorStyle)
            {
                ChangeCursor(_currentCursorStyle = mouseEventArgs.MouseCursorStyle);
            }

            ReleaseUIMouseEventArgs(mouseEventArgs);
            PrepareRenderAndFlushAccumGraphics();
        }
Esempio n. 6
0
        public void HandleMouseUp(MouseButton b, int x, int y)
        {
            _canvasViewport.FullMode = false;
            UIMouseEventArgs mouseEventArgs = GetTranslatedUIMouseEventArgs(b, x, y);

            _topWinEventRoot.RootMouseUp(mouseEventArgs);

            if (_currentCursorStyle != mouseEventArgs.MouseCursorStyle)
            {
                ChangeCursor(_currentCursorStyle = mouseEventArgs.MouseCursorStyle);
            }

            ReleaseUIMouseEventArgs(mouseEventArgs);
            PrepareRenderAndFlushAccumGraphics();
        }