Esempio n. 1
0
 public List <PlaylistMemento> getMementos(Playlist playlist)
 {
     return(mementos[playlists.IndexOf(playlist)]);
 }
Esempio n. 2
0
 public PlaylistMemento(Playlist playlist)
 {
     this.songs = new List <Song>(playlist.getSongs());
     this.name  = new String(playlist.getName().ToCharArray());
 }
Esempio n. 3
0
        public PlaylistMemento getMemento(Playlist playlist, int exactMemento)
        {
            int index = this.playlists.IndexOf(playlist);

            return(mementos[index][exactMemento]);
        }
Esempio n. 4
0
 public void AddPlaylist(Playlist newPlaylist)
 {
     playlists.Add(newPlaylist);
 }