Esempio n. 1
0
        /// <summary>
        ///  Shows the Instrument Editor dialog.
        /// </summary>
        private void ShowInstrumentEditor()
        {
            var instrEditor = new InstrumentEditor();
            instrEditor.ShowDialog();

            if (instrEditor.NeedReset)
            {
                IsDiscardSelectedIndexChange = true;

                ComboBoxSymbol.Items.Clear();
                foreach (string symbol in Instruments.SymbolList)
                    ComboBoxSymbol.Items.Add(symbol);
                ComboBoxSymbol.SelectedIndex = ComboBoxSymbol.Items.IndexOf(Data.Symbol);

                IsDiscardSelectedIndexChange = false;
            }

            Data.InstrProperties = Instruments.InstrumentList[Data.InstrProperties.Symbol].Clone();
            SetInstrumentDataStatusBar();
            Calculate(false);
        }