public WeeklyPlayHistoryViewModel(IPlayHistoryService service)
        {
            _service = service;

            TopArtists = new ObservableCollection <Statistic>();
            TopAlbums  = new ObservableCollection <Statistic>();
            TopTracks  = new ObservableCollection <Statistic>();
        }
Example #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;
        }
Example #3
0
 public PlayToViewModel(IEventAggregator eventAggregator, IPlayHistoryService playHistoryService)
 {
     this.eventAggregator    = eventAggregator;
     this.playHistoryService = playHistoryService;
 }
Example #4
0
        public MediaHubViewModel(WinRTContainer container, IEventAggregator eventAggregator, IPlayHistoryService playHistoryService)
        {
            this.container = container;

            Servers = new BindableCollection <MediaServerViewModel>();

            PlayTo = new PlayToViewModel(eventAggregator, playHistoryService);

            PlayTo.ConductWith(this);
        }
Example #5
0
 public ErrorHandlingUserInfoService(IPlayHistoryService service, IAsyncMethodInterceptor interceptor)
 {
     _interceptor = interceptor;
     _service     = service;
 }
Example #6
0
 public PlayHistoryViewModel(INavigationService navigationService, IEventAggregator eventAggregator, IPlayHistoryService playHistoryService)
     : base(navigationService, eventAggregator)
 {
     this.playHistoryService = playHistoryService;
 }
        public RecentTracksViewModel(IPlayHistoryService service)
        {
            _service = service;

            RecentTracks = new ObservableCollection <TrackPlay>();
        }