Forex_Strategy_Builder.Instrument_Editor.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 * 65);
            int btnHrzSpace = (int)(Data.HorizontalDLU * 3);

            ClientSize = new Size(6 * buttonWidth + 11 * btnHrzSpace + 4, 540);

            lbxInstruments.SelectedValueChanged += new EventHandler(LbxInstruments_SelectedValueChanged);
            lbxInstruments.SelectedIndex = lbxInstruments.Items.IndexOf(Data.Symbol);

            btnClose.Focus();
        }