Пример #1
0
 public DeletePlaylistCommand(
     IPlaylistHolder playlistHolder,
     IModelRepository <Playlist> playlistRepository)
 {
     _playlistHolder     = playlistHolder;
     _playlistRepository = playlistRepository;
 }
Пример #2
0
 public ShowEditPlaylistDialogCommand(
     IMapper mapper,
     ISongLoader songLoader,
     IPlaylistHolder playlistHolder,
     IModelRepository <Playlist> playlistRepository)
     : base(mapper, songLoader)
 {
     _playlistHolder     = playlistHolder;
     _playlistRepository = playlistRepository;
 }
Пример #3
0
 public SinglePlaylistViewModel(
     UpdateCurrentSongCommand updateCurrentSongCommand,
     PlayPlaylistCommand playPlaylistCommand,
     ShowEditPlaylistDialogCommand showEditPlaylistDialogCommand,
     DeletePlaylistCommand deletePlaylistCommand,
     ISoundPlayerManager soundPlayerManager,
     IPlaylistHolder playlistHolder)
 {
     UpdateCurrentSongCommand      = updateCurrentSongCommand;
     PlayPlaylistCommand           = playPlaylistCommand;
     ShowEditPlaylistDialogCommand = showEditPlaylistDialogCommand;
     DeletePlaylistCommand         = deletePlaylistCommand;
     SoundPlayerManager            = soundPlayerManager;
     PlaylistHolder = playlistHolder;
 }
Пример #4
0
        public PlaylistsViewModel(
            ISongLoader songLoader,
            IPlaylistRetriever playlistRetriever,
            IPlaylistHolder playlistHolder,
            UpdateCurrentPlaylistCommand updateCurrentPlaylistCommand,
            ShowCreatePlaylistDialogCommand showCreatePlaylistDialogCommand,
            SinglePlaylistViewModel singlePlaylistVm)
        {
            _songLoader                     = songLoader;
            _playlistRetriever              = playlistRetriever;
            PlaylistHolder                  = playlistHolder;
            UpdateCurrentPlaylistCommand    = updateCurrentPlaylistCommand;
            ShowCreatePlaylistDialogCommand = showCreatePlaylistDialogCommand;
            SinglePlaylistViewModel         = singlePlaylistVm;

            LoadPlaylists()
            .ContinueWith(task =>
            {
                MessageBox.Show(task.Exception.Message);
            }, TaskContinuationOptions.OnlyOnFaulted);
        }
Пример #5
0
 public PlaylistRetriever(IModelRepository <Playlist> playlistRepository, IPlaylistHolder playlistHolder, IMapper mapper)
 {
     _playlistRepository = playlistRepository;
     _mapper             = mapper;
     _playlistHolder     = playlistHolder;
 }
Пример #6
0
 public SpotiFireService(IMapEngine mapEngine, IPlaylistHolder playlistHolder)
 {
     _mapEngine = mapEngine;
     _spotiFire = new SpotifyClient();
     _playlistHolder = playlistHolder;
 }
Пример #7
0
 public PlayPlaylistCommand(ISoundPlayerManager soundPlayerManager, IPlaylistHolder playlistHolder)
 {
     _soundPlayerManager = soundPlayerManager;
     _playlistHolder     = playlistHolder;
 }
 public UpdateCurrentPlaylistCommand(IPlaylistHolder playlistHolder)
 {
     _playlistHolder = playlistHolder;
 }
 public UpdateCurrentSongCommand(ISoundPlayerManager soundPlayerManager, IPlaylistHolder playlistHolder)
 {
     _soundPlayerManager = soundPlayerManager;
     _playlistHolder     = playlistHolder;
 }