SphereStudio.Plugins.WindowstyleEditView.TestPanel_MouseMove C# (CSharp) Method

TestPanel_MouseMove() private method

private TestPanel_MouseMove ( object sender, MouseEventArgs e ) : void
sender object
e MouseEventArgs
return void
        private void TestPanel_MouseMove(object sender, MouseEventArgs e)
        {
            if (_move)
            {
                WindowPanel.Top -= (_ty - e.Y);
                WindowPanel.Left -= (_tx - e.X);
            }

            int x = _style.Images[0].Width*_style.Zoom;
            int y = _style.Images[0].Height*_style.Zoom;
            int w = WindowPanel.Width - (x + x);
            int h = WindowPanel.Height - (y + y);
            Cursor = PointWithin(e.Location, x, y, w, h) ? Cursors.SizeAll : Cursors.Default;
        }