private void Button_Click(object sender, RoutedEventArgs e) { if (!string.IsNullOrEmpty(SelectedFolder)) { AvailableFolders.Remove(SelectedFolder); } }
private void Button_Click_2(object sender, RoutedEventArgs e) { FolderPickerDialog dlg = new FolderPickerDialog(); if (dlg.ShowDialog() == true) { if (!AvailableFolders.Contains(dlg.SelectedPath)) { AvailableFolders.Add(dlg.SelectedPath); SelectedFolder = dlg.SelectedPath; } } }