ME3Explorer.ME3TalkFiles.moveTLKDown C# (CSharp) Method

moveTLKDown() public static method

public static moveTLKDown ( int index ) : void
index int
return void
        public static void moveTLKDown(int index)
        {
            TalkFile tlk = tlkList[index];
            tlkList.RemoveAt(index);
            tlkList.Insert(index + 1, tlk);
            SaveTLKList();
        }
    }

Usage Example

コード例 #1
0
        private void tlkDownButton_Click(object sender, EventArgs e)
        {
            int n = listBox1.SelectedIndex;

            if (n != -1 && n < listBox1.Items.Count - 1)
            {
                ME3TalkFiles.moveTLKDown(n);
                refresh();
                listBox1.SelectedIndex = n + 1;
            }
        }