private void BrowseSourceClick(object sender, EventArgs e) { var dialog = new FolderBrowserDialog {SelectedPath = PullSource.Text}; if (dialog.ShowDialog() == DialogResult.OK) PullSource.Text = dialog.SelectedPath; }