예제 #1
0
        void BasicControlPoint_GiveFeedback(object sender, GiveFeedbackEventArgs e)
        {
            if (mActiveDrag == null)
            {
                mActiveDrag = new SmartLineSegment(mHost);
            }

            if (mlastDDEvent != mDDCount)
            {
                mlastDDEvent = mDDCount;
                mActiveDrag.EraseLast();
            }

            mActiveDrag.A = Parent.PointToScreen(this.Location);
            mActiveDrag.B = new Point(MousePosition.X, MousePosition.Y);
            mHost.QueueDirty();
        }