private void ButtonBrowseClick(object sender, EventArgs e)
{
using (var dialog = new FolderBrowserDialog())
{
dialog.Description = "Choose a location for the project.";
dialog.ShowNewFolderButton = true;
dialog.RootFolder = Environment.SpecialFolder.MyComputer;
dialog.SelectedPath = Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments);
if (dialog.ShowDialog() == DialogResult.OK)
{
this.textBoxLocation.Text = Path.Combine(dialog.SelectedPath, this._folder);
this._location = dialog.SelectedPath;
}
}
}