ComponentFactory.Krypton.Docking.DockingDragManager.OnFloatingWindowMove C# (CSharp) Method

OnFloatingWindowMove() private method

private OnFloatingWindowMove ( object sender, EventArgs e ) : void
sender object
e System.EventArgs
return void
        private void OnFloatingWindowMove(object sender, EventArgs e)
        {
            _moveTimer.Stop();

            // Position the floating window relative to the screen position
            if (FloatingWindow != null)
            {
                if (_offset.X > (FloatingWindow.Width - 20))
                    _offset.X = FloatingWindow.Width - 20;

                if (_offset.Y > (FloatingWindow.Height - 20))
                    _offset.Y = FloatingWindow.Height - 20;

                FloatingWindow.SetBounds(_screenPt.X - FloatingWindowOffset.X,
                                         _screenPt.Y - FloatingWindowOffset.Y,
                                         FloatingWindow.Width,
                                         FloatingWindow.Height,
                                         BoundsSpecified.Location);
            }
        }