Esempio n. 1
0
        private void ChartMain_MouseMove(object sender, MouseEventArgs e)
        {
            MouseTime.SetNow();

            Point point = new Point(e.X, e.Y);

            if (MousePosition != point)
            {
                CursorMoved = true;
            }

            MousePosition = point;

            this.Threads.Run(() => _ChartMain_MouseMove(sender, e), null, false, true);


            MoveX(e);
        }
Esempio n. 2
0
        private void ChartMain_MouseMove(object sender, MouseEventArgs e)
        {
            MouseTime.SetNow();

            Point point = new Point(e.X, e.Y);

            if (MousePosition != point)
            {
                ZoomPointOrigin = new Point2D(0, 0); //This property must be zeroed to diffrent value then ZoomPointNow
                ZoomPointNow    = new Point2D(0, 1); //This property must be zeroed to diffrent value then ZoomPointOrigin
                CursorMoved     = true;
            }

            MousePosition = point;

            this.Threads.Run(() => _ChartMain_MouseMove(sender, e), null, false, true);


            MoveX(e);
        }