private void Add_Click(object sender, RoutedEventArgs e) { using (var dialog = new FolderBrowserDialogEx()) { if (dialog.ShowDialog() == System.Windows.Forms.DialogResult.OK) { var entry = new AnnotatedPathEntry(PathEntry.FromFilePath(dialog.SelectedPath)); UserPath.Add(entry); } } }
private void Add_Click(object sender, RoutedEventArgs e) { using (var dialog = new FolderBrowserDialogEx()) { if (dialog.ShowDialog() == System.Windows.Forms.DialogResult.OK) { var entry = new AnnotatedPathEntry(PathEntry.FromFilePath(dialog.SelectedPath)); UserPath.Add(entry); } } }