Esempio n. 1
0
        public LibraryStatsViewModel(ILibraryStatisticsService service)
        {
            _service = service;

            GeneralStatistics   = new ObservableCollection <Statistic>();
            TracksByArtist      = new ObservableCollection <Statistic>();
            AlbumsByReleaseType = new ObservableCollection <Statistic>();
            ArtistsByGrouping   = new ObservableCollection <Statistic>();
        }
Esempio n. 2
0
        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;
        }