ARCed.Dialogs.NewProjectForm.ButtonBrowseClick C# (CSharp) Метод

ButtonBrowseClick() приватный Метод

Opens the folder browser dialog to select a project location
private ButtonBrowseClick ( object sender, EventArgs e ) : void
sender object The invoker of the event
e System.EventArgs Event arguments
Результат void
        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;
                }
            }
        }