Forex_Strategy_Builder.Instrument_Editor.BtnDown_Click C# (CSharp) Method

BtnDown_Click() private method

BtnDown Clicked.
private BtnDown_Click ( object sender, EventArgs e ) : void
sender object
e System.EventArgs
return void
        void BtnDown_Click(object sender, EventArgs e)
        {
            string symbol = lbxInstruments.SelectedItem.ToString();
            int    index  = lbxInstruments.SelectedIndex;

            if (index < lbxInstruments.Items.Count - 1)
            {
                lbxInstruments.Items.RemoveAt(index);
                lbxInstruments.Items.Insert(index + 1, symbol);
                lbxInstruments.SelectedIndex = index + 1;
                bNeedReset = true;
            }

            return;
        }