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

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

Recalculates the sizes and positions of the controls after resizing.
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;
            int textHeight   = Font.Height;

            // Button Close
            btnClose.Size     = new Size(buttonWidth, buttonHeight);
            btnClose.Location = new Point(ClientSize.Width - buttonWidth - btnHrzSpace, ClientSize.Height - buttonHeight - btnVertSpace);

            // Button Connect
            btnConnect.Size     = new Size(3 * buttonWidth, buttonHeight);
            btnConnect.Location = new Point(btnClose.Left - btnConnect.Width - btnHrzSpace, ClientSize.Height - buttonHeight - btnVertSpace);

            // pnlInfoBase
            pnlInfoBase.Size     = new Size(ClientSize.Width - 2 * border, 65);
            pnlInfoBase.Location = new Point(border, border);

            // pnlBBCodeBase
            pnlBBCodeBase.Size     = new Size(ClientSize.Width - 2 * border, btnClose.Top - pnlInfoBase.Bottom - btnVertSpace - border);
            pnlBBCodeBase.Location = new Point(border, pnlInfoBase.Bottom + border);

            return;
        }