/// <summary> /// Shows the Instrument Editor dialog. /// </summary> void ShowInstrumentEditor() { Instrument_Editor instrEditor = new Instrument_Editor(); instrEditor.ShowDialog(); if (instrEditor.NeedReset) { isDiscardSelectedIndexChange = true; tscbSymbol.Items.Clear(); tscbSymbol.Items.AddRange(Instruments.SymbolList); tscbSymbol.SelectedIndex = tscbSymbol.Items.IndexOf(Data.Symbol); isDiscardSelectedIndexChange = false; } Data.InstrProperties = Instruments.InstrumentList[Data.InstrProperties.Symbol].Clone(); SetInstrumentDataStatusBar(); Calculate(false); return; }