Forex_Strategy_Builder.Starting_Tips.OnResize C# (CSharp) Метод

OnResize() защищенный Метод

On Resize
protected OnResize ( EventArgs e ) : void
e System.EventArgs
Результат void
        protected override void OnResize(EventArgs e)
        {
            base.OnResize(e);
            int buttonHeight = (int)(Data.VerticalDLU * 15.5);
            int buttonWidth  = (int)(Data.HorizontalDLU * 60);
            int btnVertSpace = (int)(Data.VerticalDLU * 5.5 );
            int btnHrzSpace  = (int)(Data.HorizontalDLU * 3);
            int border       = btnHrzSpace;

            pnlControl.Height = buttonHeight + 2 * btnVertSpace;

            pnlBase.Size     = new Size(ClientSize.Width - 2 * border, pnlControl.Top - border);
            pnlBase.Location = new Point(border, border);

            chboxShow.Location = new Point(btnHrzSpace, btnVertSpace + 5);

            btnClose.Size     = new Size(buttonWidth, buttonHeight);
            btnClose.Location = new Point(ClientSize.Width - btnNextTip.Width - btnHrzSpace, btnVertSpace);

            btnNextTip.Size     = new Size(buttonWidth, buttonHeight);
            btnNextTip.Location = new Point(btnClose.Left - btnNextTip.Width - btnHrzSpace, btnVertSpace);

            btnPrevTip.Size     = new Size(buttonWidth, buttonHeight);
            btnPrevTip.Location = new Point(btnNextTip.Left - btnPrevTip.Width - btnHrzSpace, btnVertSpace);

            // Resize if necessary
            if (btnPrevTip.Left - chboxShow.Right < btnVertSpace)
                Width += btnVertSpace - btnPrevTip.Left + chboxShow.Right;

            return;
        }