AA2Install.formMain.btnAA2PLAY_Click C# (CSharp) Method

btnAA2PLAY_Click() private method

private btnAA2PLAY_Click ( object sender, EventArgs e ) : void
sender object
e EventArgs
return void
        private void btnAA2PLAY_Click(object sender, EventArgs e)
        {
            FolderBrowserDialog fold = new FolderBrowserDialog();
            fold.Description = @"Locate the AA2_PLAY\data folder.";
            DialogResult result = fold.ShowDialog();
            if (result == DialogResult.OK)
            {
                Configuration.WriteSetting("AA2PLAY_Path", fold.SelectedPath);
                txtAA2PLAY.Text = fold.SelectedPath;
            }
        }