Exemplo n.º 1
0
        private void InnerMove(MovePoints points)
        {
            _startSignPoint = points.MStart;
            _endSignPoint   = points.MEnd;
            _virtualBounds  = points.VBound;

            _isSelected = true;
            Invalidate();
        }
Exemplo n.º 2
0
        public override void Move(Point point)
        {
            int        w     = (_virtualBounds.Location.X - point.X) / Zoom;
            int        h     = (_virtualBounds.Location.Y - point.Y) / Zoom;
            Size       size  = new Size(w, h);
            MovePoints moves = new MovePoints();

            moves.MStart = _startSignPoint - size;
            moves.MEnd   = _endSignPoint - size;
            moves.VBound = new Rectangle(point, _virtualBounds.Size);
            LinePoints   = moves;
        }