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

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

Form 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;

            btnOk.Size       = new Size(buttonWidth, buttonHeight);
            btnOk.Location   = new Point(ClientSize.Width - btnOk.Width - border, ClientSize.Height - btnOk.Height - btnVertSpace);
            pnlBase.Size     = new Size(ClientSize.Width - 2 * border, btnOk.Top - border - btnVertSpace);
            pnlBase.Location = new Point(border, border);

            pictureBox1.Location = new Point(10, 3);
            pictureBox1.Size     = new Size(48, 48);
            label1.Location      = new Point(63, 10);
            label2.Location      = new Point(66, 45);
            label3.Location      = new Point(66, 77);
            label4.Location      = new Point(67, 160);
            label5.Location      = new Point(67, 180);
            label6.Location      = new Point(67, 200);
            llWebsite.Location   = new Point(label5.Right + 5, label4.Top);
            llForum.Location     = new Point(label5.Right + 5, label5.Top);
            llEmail.Location     = new Point(label5.Right + 5, label6.Top);

            pnlBase.Invalidate();
        }