/// <summary> /// Open a file selection dialog for target folder /// </summary> /// <param name="sender">The source of the event.</param> /// <param name="e">The <see cref="System.EventArgs"/> instance containing the event data.</param> private void targetFolderButton_Click(object sender, EventArgs e) { if (TargetFolderDialog.ShowDialog() == DialogResult.OK) { this.targetFolderName.Text = TargetFolderDialog.SelectedPath; targetFolderName.Focus(); } }
private void TargetButton_Click(object sender, EventArgs e) { TargetFolderDialog.ShowDialog(); if (!Directory.Exists(TargetFolderDialog.SelectedPath)) { return; } TargetText.Text = TargetFolderDialog.SelectedPath; }