Ejemplo n.º 1
0
        /// <summary>
        /// Use selected new instrument to subscribe to.
        /// </summary>
        private void listBoxInstruments_SelectedIndexChanged(object sender, EventArgs e)
        {
            string selectName = (string)listBoxInstruments.SelectedItem;

            if (!string.IsNullOrEmpty(selectName))
            {
                InstrumentName instr;
                if (m_Instruments.TryGetValue(selectName, out instr))
                {
                    m_Market.RequestInstrumentSubscription(instr);
                }
            }
        }