public AddToPlaylistPopupViewPresenter(
     IEnumerable <Song> songs,
     IUserPlaylistsService userPlaylistsService,
     IUserPlaylistsRepository userPlaylistsRepository)
 {
     this.Songs = songs.ToList();
     this.userPlaylistsService    = userPlaylistsService;
     this.userPlaylistsRepository = userPlaylistsRepository;
 }
예제 #2
0
 public PlaylistPageViewPresenter(
     IDependencyResolverContainer container,
     IApplicationResources resources,
     IUserPlaylistsService userPlaylistsService,
     IPlaylistsService playlistsService)
     : base(container)
 {
     this.resources                 = resources;
     this.userPlaylistsService      = userPlaylistsService;
     this.playlistsService          = playlistsService;
     this.RemoveFromPlaylistCommand = new DelegateCommand(this.RemoveFromPlaylist);
 }
예제 #3
0
 public PlaylistsService(
     IDependencyResolverContainer container,
     IRadioStationsService radioStationsService,
     IUserPlaylistsService userPlaylistsService,
     IApplicationResources applicationResources,
     ISettingsService settingsService)
 {
     this.container            = container;
     this.radioStationsService = radioStationsService;
     this.userPlaylistsService = userPlaylistsService;
     this.applicationResources = applicationResources;
     this.settingsService      = settingsService;
 }
 public PlaylistEditPopupViewPresenter(
     ISearchService searchService,
     IUserPlaylistsService userPlaylistsService,
     UserPlaylist userPlaylist)
 {
     this.searchService        = searchService;
     this.userPlaylistsService = userPlaylistsService;
     this.userPlaylist         = userPlaylist;
     this.SaveCommand          = new DelegateCommand(this.Save, this.CanSave);
     this.CancelCommand        = new DelegateCommand(this.Cancel);
     this.Title = !string.IsNullOrEmpty(this.userPlaylist.PlaylistId)
                ? this.userPlaylist.Title
                : DateTime.Now.ToString(CultureInfo.CurrentCulture);
 }
 public UserPlaylistsPageViewPresenter(
     IApplicationResources resources,
     INavigationService navigationService,
     IPlayQueueService playQueueService,
     IPlaylistsService playlistsService,
     IUserPlaylistsService userPlaylistsService,
     ISongsCachingService cachingService,
     IApplicationStateService stateService)
     : base(resources, playlistsService, navigationService, playQueueService, cachingService, stateService)
 {
     this.resources              = resources;
     this.userPlaylistsService   = userPlaylistsService;
     this.stateService           = stateService;
     this.AddPlaylistCommand     = new DelegateCommand(this.AddPlaylist);
     this.EditPlaylistCommand    = new DelegateCommand(this.EditPlaylist, () => this.BindingModel.SelectedItems.Count == 1);
     this.DeletePlaylistsCommand = new DelegateCommand(this.DeletePlaylists, () => this.BindingModel.SelectedItems.Count > 0);
 }