SmartQuant.Charting.Chart.OnMouseMove C# (CSharp) Méthode

OnMouseMove() protected méthode

protected OnMouseMove ( MouseEventArgs e ) : void
e MouseEventArgs
Résultat void
        protected override void OnMouseMove(MouseEventArgs e)
        {
            if (this.fPadSplit)
            {
                Pad pad1 = this.fPads[this.fPadSplitIndex];
                int width = this.ClientRectangle.Width;
                int height = this.ClientRectangle.Height;
                double num = (double)e.Y / (double)height;
                pad1.SetCanvas(pad1.CanvasX1, num, pad1.CanvasX2, pad1.CanvasY2, width, height);
                if (this.fPadSplitIndex != 0)
                {
                    Pad pad2 = this.fPads[this.fPadSplitIndex - 1];
                    pad2.SetCanvas(pad2.CanvasX1, pad2.CanvasY1, pad2.CanvasX2, num, width, height);
                }
                UpdatePads();
            }
            if (this.fPads.Cast<Pad>().Any(pad => pad.Y1 - 1 <= e.Y && e.Y <= pad.Y1 + 1))
            {
                #if GTK
                GdkWindow.Cursor = new Gdk.Cursor(Gdk.CursorType.SbVDoubleArrow);
                #else
                Cursor.Current = Cursors.HSplit;
                #endif
                return;
            }
            foreach (var pad in this.fPads.Cast<Pad>().Where(pad => PointInPad(pad, e.Location)))
                pad.MouseMove(e);
            base.OnMouseMove(e);
        }