Пример #1
0
        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;
        }
Пример #2
0
 /// <summary>
 /// Ajouter une musique à la playlist
 /// </summary>
 /// <param name="aSong"></param>
 public void addMusicToPlayList(Music aSong)
 {
     this.music_List.Add(aSong);
 }
Пример #3
0
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="aSong"></param>
 public CommandPlay(Music aSong)
 {
     this.aSong = aSong;
 }