Forex_Strategy_Builder.Account_Settings.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);

            int buttonWidth = (int)(Data.HorizontalDLU * 60);
            int btnHrzSpace = (int)(Data.HorizontalDLU * 3);

            ClientSize = new Size(3 * buttonWidth + 4 * btnHrzSpace, 257);

            cbxAccountCurrency.SelectedIndexChanged += new EventHandler(ParamChanged);
            nudInitialAccount.ValueChanged          += new EventHandler(ParamChanged);
            cbxLeverage.SelectedIndexChanged        += new EventHandler(ParamChanged);
            nudExchangeRate.ValueChanged            += new EventHandler(ParamChanged);

            btnAccept.Focus();
        }