コード例 #1
0
        public void PopulateMenuItems(SearchResultCollection result)
        {
            MenuItemViewModels.Clear();

            if (result == null) return;

            PopulateArtists(result.Artists);
            PopulateAlbums(result.Albums);
            PopulateSongs(result.Songs);

            foreach (var subsonicModel in _menuItemViewModels.Select(x => x.Item))
            {
                subsonicModel.CoverArt = SubsonicService.GetCoverArtForId(subsonicModel.CoverArt);
            }
        }
コード例 #2
0
 public void TestInitialize()
 {
     _subject = new SearchResultCollection();
 }