Ejemplo n.º 1
0
 public void delAlbum(Album album, bool fromComputer)
 {
     for (int i = 0; i < library.albums.Count(); i++)
     {
         if (album.name == library.albums[i].name)
         {
             library.albums.RemoveAt(i);
             if (fromComputer == true)
                 for (int j = 0; j < album.songs.Count(); j++)
                     if (File.Exists(album.songs[i].path))
                         File.Delete(album.songs[i].path);
         }
     }
     saveLib(library);
 }
Ejemplo n.º 2
0
 public void addAlbum(Album album)
 {
     for (int i = 0; i < albums.Count(); i++)
         if (name == album.name)
             albums.Add(album);
 }