private void Button_Click_1(object sender, RoutedEventArgs e) { if (SelectedCollection != null) { Settings.Settings.Default.DeleteGeocacheCollection(SelectedCollection.CollectionID); AvailableCollections.Remove(SelectedCollection); } }
private void Button_Click_1(object sender, RoutedEventArgs e) { if (SelectedCollection != null && AvailableCollections.Contains(SelectedCollection)) { Core.Settings.Default.DeleteCollection(SelectedCollection); AvailableCollections.Remove(SelectedCollection); } }