public static void moveTLKDown(int index) { TalkFile tlk = tlkList[index]; tlkList.RemoveAt(index); tlkList.Insert(index + 1, tlk); SaveTLKList(); } }
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; } }