Exemple #1
0
        /// <summary>
        /// Remove the specified GenrePopulation from the collection and from storage.
        /// </summary>
        /// <param name="population"></param>
        public static void RemovePopulation(GenrePopulation population)
        {
            GenrePopulationCollection.Remove(population);

            // No need to wait for this
            DbAccess.DeleteAsync(population);
        }
Exemple #2
0
 /// <summary>
 /// Create a new Population class and initialise it from the provided genres and albums
 /// </summary>
 /// <param name="seed"></param>
 public Population(GenrePopulation seed, IEnumerable <string> genres, IEnumerable <Album> albums)
 {
     SeedPopulation = seed;
     Genres         = genres.ToList();
     Albums         = albums.ToList();
 }