public WeeklyPlayHistoryViewModel(IPlayHistoryService service) { _service = service; TopArtists = new ObservableCollection <Statistic>(); TopAlbums = new ObservableCollection <Statistic>(); TopTracks = 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; }
public PlayToViewModel(IEventAggregator eventAggregator, IPlayHistoryService playHistoryService) { this.eventAggregator = eventAggregator; this.playHistoryService = playHistoryService; }
public MediaHubViewModel(WinRTContainer container, IEventAggregator eventAggregator, IPlayHistoryService playHistoryService) { this.container = container; Servers = new BindableCollection <MediaServerViewModel>(); PlayTo = new PlayToViewModel(eventAggregator, playHistoryService); PlayTo.ConductWith(this); }
public ErrorHandlingUserInfoService(IPlayHistoryService service, IAsyncMethodInterceptor interceptor) { _interceptor = interceptor; _service = service; }
public PlayHistoryViewModel(INavigationService navigationService, IEventAggregator eventAggregator, IPlayHistoryService playHistoryService) : base(navigationService, eventAggregator) { this.playHistoryService = playHistoryService; }
public RecentTracksViewModel(IPlayHistoryService service) { _service = service; RecentTracks = new ObservableCollection <TrackPlay>(); }