Пример #1
0
        private void handleMouseUp(MouseEventArgs param)
        {
            if (param == null)
            {
                throw new InvalidOperationException(GetFunctionName());
            }
            var sender = param.Source as IInputElement;

            if (sender == null)
            {
                throw new InvalidOperationException(GetFunctionName());
            }

            bool isScreenDirty = false;

            // Ist die Kamera Bewegung aktiviert?
            if ((Keyboard.Modifiers & ModifierKeys.Alt) > 0)
            {
                _camera.OnMouseUp(param, ref isScreenDirty);
            }
            else
            {
                SelectedTool.OnMouseUp(param, ref isScreenDirty);
                //_tool.OnMouseUp(param);
            }
            Mouse.OverrideCursor = null;
            if (isScreenDirty)
            {
                _dxElement.Render();
            }
        }
Пример #2
0
        public override void OnMouseUp(MouseEventArgs e)
        {
            SelectedTool?.OnMouseUp(new MouseEventArgs(e.Buttons, e.Modifiers, e.Location * BGI.Scale, e.Delta, e.Pressure));

            if (!e.Handled)
            {
                base.OnMouseUp(e);
            }
        }
Пример #3
0
        public override void OnMouseUp(MouseEventArgs e)
        {
            base.OnMouseUp(e);

            if (!AllowEditing)
            {
                return;
            }

            if (SelectedTool != null)
            {
                SelectedTool.OnMouseUp(e);
            }
        }
Пример #4
0
        public void ButtonRelease(double x, double y)
        {
            EndPressPoint = new Cairo.PointD(x / Zoom, y / Zoom);
            IsPressed     = false;
            IsMoving      = false;
            if (SelectedTool != null)
            {
                SelectedTool.OnMouseUp();
            }

            if (SelectedControl != null)
            {
                WorkspaceService.ShowInPropertyGrid(SelectedControl.ControlModel);
            }

            WorkspaceService.InvalidateDesignArea();
        }