Exemplo n.º 1
0
        private PlaylistsHolder()
        {
            playlists = new List <IPlaylist>();
            var          bitrates      = new StationsCollection();
            UserPlaylist smallPlaylist = new UserPlaylist();
            UserPlaylist largePlaylist = new UserPlaylist();
            Composition  song          = new Composition()
            {
                Name = "song"
            };
            Composition theme = new Composition()
            {
                Name = "theme"
            };
            Composition melody = new Composition()
            {
                Name = "melody"
            };

            smallPlaylist.Playlist.Add(song);
            smallPlaylist.Playlist.Add(theme);
            largePlaylist.Playlist.Add(song);
            largePlaylist.Playlist.Add(theme);
            largePlaylist.Playlist.Add(melody);



            playlists.Add(smallPlaylist);
            playlists.Add(largePlaylist);
        }
Exemplo n.º 2
0
 /// <summary>
 /// Creates a new empty StationMemory instance on the train set. 
 /// </summary>
 internal StationsMemory()
 {
     Stations = new StationsCollection();
     _lastCompDkingIdx = -1;
 }