Forex_Strategy_Builder.Instrument_Editor.BtnUp_Click C# (CSharp) Method

BtnUp_Click() private method

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

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

            return;
        }