private void removeTlkButton_Click(object sender, EventArgs e) { int n = listBox1.SelectedIndex; if (n != -1) { TalkFiles.removeTLK(n); refresh(); } }
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; } }
private void tlkUpButton_Click(object sender, EventArgs e) { int n = listBox1.SelectedIndex; if (n > 0) { TalkFiles.moveTLKUp(n); refresh(); listBox1.SelectedIndex = n - 1; } }
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; } }
public Form1() { InitializeComponent(); disableDLCCheckOnStartupToolStripMenuItem.Checked = Properties.Settings.Default.DisableDLCCheckOnStart; TalkFiles.LoadSavedTlkList(); }