public bool Compare(Music music) { foreach (string cle in metaDataSearch.Keys) { string value = music.GetMetaData(cle); if (value == "") { return false; } if (value != metaDataSearch[cle]) { return false; } } return true; }
/// <summary> /// Ajouter une musique à la playlist /// </summary> /// <param name="aSong"></param> public void addMusicToPlayList(Music aSong) { this.music_List.Add(aSong); }
/// <summary> /// Constructor /// </summary> /// <param name="aSong"></param> public CommandPlay(Music aSong) { this.aSong = aSong; }