Beispiel #1
0
        public virtual void DragTo(int x, int y, PointF refPoint, bool dragging)
        {
            LinearScale scale = this.GetScale();

            this.dragging = dragging;
            double value = scale.GetValue(refPoint, new PointF((float)x, (float)y));

            value = scale.GetValueLimit(value, this.SnappingEnabled, this.SnappingInterval);
            if (this.Common != null)
            {
                this.Value = value;
            }
        }
Beispiel #2
0
        internal virtual void DragTo(int x, int y, PointF refPoint, bool dragging)
        {
            LinearScale scale = GetScale();

            this.dragging = dragging;
            double value = scale.GetValue(refPoint, new PointF(x, y));

            value = scale.GetValueLimit(value, SnappingEnabled, SnappingInterval);
            if (Common != null)
            {
                Value = value;
            }
        }