ShowDialog() public method

public ShowDialog ( string description, string Title ) : DialogResult
description string
Title string
return DialogResult
Esempio n. 1
0
        //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 = "";
            }
        }
Esempio n. 2
0
        //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 = "";
            }
        }