Instrument Editor
상속: System.Windows.Forms.Form
예제 #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;
        }
예제 #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;
        }