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

            if (n != -1)
            {
                TalkFiles.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)
            {
                TalkFiles.moveTLKDown(n);
                refresh();
                listBox1.SelectedIndex = n + 1;
            }
        }
예제 #3
0
        private void tlkUpButton_Click(object sender, EventArgs e)
        {
            int n = listBox1.SelectedIndex;

            if (n > 0)
            {
                TalkFiles.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)
            {
                TalkFiles.addTLK(d.FileName);
                refresh();
                listBox1.SelectedIndex = listBox1.Items.Count - 1;
            }
        }
예제 #5
0
 public Form1()
 {
     InitializeComponent();
     disableDLCCheckOnStartupToolStripMenuItem.Checked = Properties.Settings.Default.DisableDLCCheckOnStart;
     TalkFiles.LoadSavedTlkList();
 }