Exemple #1
0
        private void picMain_MouseMove(object sender, MouseEventArgs e)
        {
            switch (State)
            {
            case ViewInteractionStates.Normal:
                break;

            case ViewInteractionStates.Dragging:
                view.TransposeToAllignPoints(GrabbedPoint, e.Location);
                DoViewChangeTasks();
                picMain.Refresh();
                break;
            }

            if (view is IEditableView2D)
            {
                var location = view.ScreenToWorldTransformMatrix.Transform(e.Location);
                lblMousePos.Text = view.WorldSpaceBounds.Contains(location) ? location.AsPoint().ToString() : "";

                if (onStatusChange != null)
                {
                    onStatusChange(view);
                }
            }
        }