public LibraryStatsViewModel(ILibraryStatisticsService service) { _service = service; GeneralStatistics = new ObservableCollection <Statistic>(); TracksByArtist = new ObservableCollection <Statistic>(); AlbumsByReleaseType = new ObservableCollection <Statistic>(); ArtistsByGrouping = new ObservableCollection <Statistic>(); }
public DashboardViewModel(ILibraryStatisticsService libraryStatisticsService, Common.Singletons.Library library, IPlayHistoryService playHistoryService) : base(TabType.Dashboard, IconType.Home, "Home") { LibraryStatsViewModel = new LibraryStatsViewModel(libraryStatisticsService); RecentTracksViewModel = new RecentTracksViewModel(playHistoryService); PlayHistoryViewModel = new WeeklyPlayHistoryViewModel(playHistoryService); library.Updated += Library_Updated; }