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;
}