private void ClientAddWindow_DownloadFolderOpen(object sender, RoutedEventArgs e) { System.Windows.Forms.FolderBrowserDialog dlg = new System.Windows.Forms.FolderBrowserDialog() { Description = "Select the directory that you want to use as the download location.", SelectedPath = DownloadFolder.Text }; if (dlg.ShowDialog() == System.Windows.Forms.DialogResult.OK) { DownloadFolder.Text = dlg.SelectedPath; DownloadFolder.Focus(); } }
private void ClientAddWindow_DownloadFolderClear(object sender, RoutedEventArgs e) { DownloadFolder.Text = ""; DownloadFolder.Focus(); }