//Select a Script Button private void button4_Click(object sender, EventArgs e) { OpenFolderDialog openDlg = new OpenFolderDialog(); if (openDlg.ShowDialog(@"X'moe Script(*.axs)|*.axs", "Select a Script") == DialogResult.OK) { this.ScriptName = openDlg.Path; this.textBox3.Text = openDlg.Path; } else { this.ScriptName = ""; this.textBox3.Text = ""; } }
//Select a Text Button private void button2_Click(object sender, EventArgs e) { OpenFolderDialog openDlg = new OpenFolderDialog(); if (openDlg.ShowDialog(@"All File(*.*)|*.*", "Select a File") == DialogResult.OK) { this.FileName = openDlg.Path; this.textBox1.Text = openDlg.Path; } else { this.FileName = ""; this.textBox1.Text = ""; } }