Forex_Strategy_Builder.Instrument_Editor.BtnAddInstrAdd_Click C# (CSharp) Method

BtnAddInstrAdd_Click() private method

BtnAdd Clicked.
private BtnAddInstrAdd_Click ( object sender, EventArgs e ) : void
sender object
e System.EventArgs
return void
        void BtnAddInstrAdd_Click(object sender, EventArgs e)
        {
            if (ValidateSymbol(tbxAddInstrSymbol.Text, (Instrumet_Type)Enum.Parse(typeof(Instrumet_Type), cbxAddInstrType.Text)) &&
                !lbxInstruments.Items.Contains(tbxAddInstrSymbol.Text))
            {
                instrPropSelectedInstrument = new Instrument_Properties(tbxAddInstrSymbol.Text, (Instrumet_Type)Enum.Parse(typeof(Instrumet_Type), cbxAddInstrType.Text));
                SetPropertiesForm();
                SetSelectedInstrument();
            }
            else
            {
                MessageBox.Show(Language.T("Wrong Symbol!"), Language.T("Instrument Properties"), MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
            }

            return;
        }