Ejemplo n.º 1
0
        protected override void OnMouseMove(MouseEventArgs args)
        {
            MsaglMouseEventArgs iArgs = CreateMouseEventArgs(args);

            gViewer.RaiseMouseMoveEvent(iArgs);
            gViewer.RaiseRegularMouseMove(args);
            if (!iArgs.Handled)
            {
                if (gViewer.Graph != null)
                {
                    SetCursor(args);
                    if (MouseDraggingMode == DraggingMode.Pan)
                    {
                        ProcessPan(args);
                    }
                    else if (zoomWindow)
                    {
                        //the user is holding the left button, do nothing
                        DrawZoomWindow(args);
                    }
                    else
                    {
                        HitIfBbNodeIsNotNull(args);
                    }
                }
            }
        }