Exemplo n.º 1
0
        public override void OnMouseMove(int int_2, int int_3, int int_4, int int_5)
        {
            IPoint anchorPoint = _context.ActiveView.ScreenDisplay.DisplayTransformation.ToMapPoint(int_4, int_5);

            this.snapHelper_0.AnchorPoint = anchorPoint;
            IActiveView arg_3A_0 = _context.FocusMap as IActiveView;

            this.snapHelper_0.Snap2Point(anchorPoint, this.snapHelper_0.AnchorPoint,
                                         esriSimpleMarkerStyle.esriSMSDiamond);
            if (this.bool_5)
            {
                this.bool_1 = true;
                if (this.bool_2)
                {
                    this.int_0++;
                    if (this.int_0 >= 2)
                    {
                        this.int_0    = 0;
                        this.ipoint_0 = _context.ActiveView.ScreenDisplay.DisplayTransformation.ToMapPoint(int_4, int_5);
                        this.method_4();
                        if (!this.isegmentGraphCursor_0.MoveTo(this.ipoint_0))
                        {
                            this.isegmentGraphCursor_0.FinishMoveTo(this.ipoint_0);
                        }
                        this.ipolyline_0 = this.isegmentGraphCursor_0.CurrentTrace;
                        object value = Missing.Value;
                        object obj   = this.int_1;
                        this.iconstructCurve_0.ConstructOffset(this.ipolyline_0, this.double_0, ref obj, ref value);
                        ISegmentCollection segmentCollection = this.iconstructCurve_0 as ISegmentCollection;
                        if (this.isegmentCollection_0 != null && this.isegmentCollection_0.SegmentCount != 0)
                        {
                            this.iline_0.PutCoords(this.ipoint_1, segmentCollection.get_Segment(0).FromPoint);
                            ISegment segment = this.iline_0 as ISegment;
                            segmentCollection.InsertSegments(0, 1, ref segment);
                        }
                        this.method_4();
                    }
                }
            }
        }