Forex_Strategy_Builder.Dialogs.Analyzer.Over_optimization_Charts_Form.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)
        {
            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 space        = btnHrzSpace;

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

            // Next Chart
            btnNextCharts.Size = new Size((int)(1.5 * buttonWidth), buttonHeight);
            btnNextCharts.Location = new Point(btnHrzSpace, ClientSize.Height - buttonHeight - btnVertSpace);

            // Chart
            currentChart.Size = new Size(ClientSize.Width - 2 * space, btnClose.Top - space - btnVertSpace);
            currentChart.Location = new Point(space, space);
        }