Пример #1
0
        public static SongListItem CreateInstance(Song song)
        {
            SongListItem songListItem = new SongListItem
            {
                Song     = song,
                Selected = false
            };

            return(songListItem);
        }
Пример #2
0
 public bool AreSame(SongListItem other)
 {
     if (other == null)
     {
         return(false);
     }
     if (Song == null)
     {
         return(false);
     }
     if (other.Song == null)
     {
         return(false);
     }
     return(other.Song.Name == Song.Name && other.Song.Album == Song.Album);
 }