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