Forex_Strategy_Builder.Data_Horizon.OnLoad C# (CSharp) Method

OnLoad() protected method

Performs initialization.
protected OnLoad ( EventArgs e ) : void
e System.EventArgs
return void
        protected override void OnLoad(EventArgs e)
        {
            base.OnLoad(e);
            numUpDownMaxBars.Value    = maxBars;
            dtpStartDate.Value        = dtStart;
            dtpEndDate.Value          = dtEnd;
            chboxUseEndDate.Checked   = useEndDate;
            dtpEndDate.Enabled        = useEndDate;
            chboxUseStartDate.Checked = useStartDate;
            dtpStartDate.Enabled      = useStartDate;

            int buttonWidth  = (int)(Data.HorizontalDLU * 60);
            int btnHrzSpace  = (int)(Data.HorizontalDLU * 3);
            ClientSize = new Size(3 * buttonWidth + 4 * btnHrzSpace, 230);
        }