Exemple #1
0
 public void AddFavorite(Collection collection)
 {
     lock (FavoriteCollections) {
         if (FavoriteCollections.Any(f => f.Matches(collection)))
         {
             return;
         }
         FavoriteCollections.Add(new FavoriteCollection(collection));
     }
     SaveSettings();
 }
Exemple #2
0
 public bool IsFavorite(Collection collection) => FavoriteCollections.Any(f => f.Matches(collection));