Forex_Strategy_Builder.Bar_Explorer.OnLoad C# (CSharp) Method

OnLoad() protected method

Resizes the form.
protected OnLoad ( EventArgs e ) : void
e System.EventArgs
return void
        protected override void OnLoad(EventArgs e)
        {
            base.OnLoad(e);
            SetBtnNavigate();
            for (int iBar = Data.FirstBar; iBar < Data.Bars; iBar++)
                if (Backtester.WayPoints(iBar) > maxWayPoints)
                    maxWayPoints = Backtester.WayPoints(iBar);

            int btnHrzSpace     = (int)(Data.HorizontalDLU * 3);
            int iClientSizeWidth = (int)(Math.Max(aiColumnX[columns] + 2 * btnHrzSpace, 500));
            ClientSize = new Size(iClientSizeWidth, 310 + infoRowHeight * (maxWayPoints + 2));

            return;
        }