示例#1
0
        private void removeTlkButton_Click(object sender, EventArgs e)
        {
            int n = listBox1.SelectedIndex;

            if (n != -1)
            {
                ME2TalkFiles.removeTLK(n);
                refresh();
            }
        }
示例#2
0
        private void tlkDownButton_Click(object sender, EventArgs e)
        {
            int n = listBox1.SelectedIndex;

            if (n != -1 && n < listBox1.Items.Count - 1)
            {
                ME2TalkFiles.moveTLKDown(n);
                refresh();
                listBox1.SelectedIndex = n + 1;
            }
        }
示例#3
0
        private void tlkUpButton_Click(object sender, EventArgs e)
        {
            int n = listBox1.SelectedIndex;

            if (n > 0)
            {
                ME2TalkFiles.moveTLKUp(n);
                refresh();
                listBox1.SelectedIndex = n - 1;
            }
        }
示例#4
0
        private void addTlkButton_Click(object sender, EventArgs e)
        {
            OpenFileDialog d = new OpenFileDialog();

            d.Filter = "*.tlk|*.tlk";
            if (d.ShowDialog() == DialogResult.OK)
            {
                ME2TalkFiles.addTLK(d.FileName);
                refresh();
                listBox1.SelectedIndex = listBox1.Items.Count - 1;
            }
        }