Instrument Editor
Inheritance: System.Windows.Forms.Form
Ejemplo n.º 1
0
        /// <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;
        }
Ejemplo n.º 2
0
        /// <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;
        }