Ejemplo n.º 1
0
 public LibraryTracksViewModel(TrackContextMenuViewModel trackContextMenuViewModel, IPlayRequestHandler playRequestHandler, ILibrarySortingService sortingService)
 {
     _playRequestHandler = playRequestHandler;
     _sortingService     = sortingService;
     TrackContextMenu    = trackContextMenuViewModel;
     PlayArtistCommand   = new RelayCommand(OnPlayArtist);
     PlayAlbumCommand    = new RelayCommand(OnPlayAlbum);
 }
 public LibraryDataOrganiserService(ITaggingService taggingService, ICommentProcessingService commentProcessingService, Library library,
                                    ILibrarySortingService sortingService)
 {
     _library                  = library;
     _sortingService           = sortingService;
     _taggingService           = taggingService;
     _commentProcessingService = commentProcessingService;
 }
Ejemplo n.º 3
0
 public TrackUpdateService(ILibraryDataOrganiserService libraryOrganiserService, ITaggingService taggingService,
                           ICommentProcessingService commentProcessingService, ILibrarySortingService sortingService)
 {
     _commentProcessingService = commentProcessingService;
     _libraryOrganiserService  = libraryOrganiserService;
     _sortingService           = sortingService;
     _taggingService           = taggingService;
 }
Ejemplo n.º 4
0
 public LibraryService(IFileService fileService, ILibraryDataOrganiserService libraryDataOrganiserService, ITaggingService taggingService,
                       ITrackRepository dataPersistenceService, IUserSettings userSettings, ILibrarySortingService librarySortingService,
                       IConfigSettings configSettings)
 {
     _fileService = fileService;
     _libraryDataOrganiserService = libraryDataOrganiserService;
     _librarySortingService       = librarySortingService;
     _dataPersistenceService      = dataPersistenceService;
     _taggingService = taggingService;
     _userSettings   = userSettings;
     _configSettings = configSettings;
 }
Ejemplo n.º 5
0
        public LibraryViewModel(Common.Singletons.Library library, ILibrarySortingService librarySortingService, IPlayRequestHandler playRequestHandler,
                                LibraryArtistViewModel artistViewModel, LibraryTracksViewModel tracksViewModel)
            : base(TabType.Library, IconType.Book, Resources.TabTitleLibrary)
        {
            _library = library;
            _librarySortingService = librarySortingService;
            _playRequestHandler    = playRequestHandler;

            Artists         = new List <Artist>();
            ArtistViewModel = artistViewModel;
            TracksViewModel = tracksViewModel;
            ArtistTypeAlbum = true;

            ShuffleArtistCommand = new RelayCommand <Artist>(OnShuffleArtist);

            _library.Updated += OnLibraryUpdated;
        }