public MusicDataManager() { _databaseFile = new FileInfo(Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData), "Hurricane", "database.sqlite")); Images = new ImagesProvider(); Artists = new ArtistProvider(Images); Albums = new AlbumsProvider(Artists); Tracks = new TrackProvider(Artists, Images, Albums); Playlists = new PlaylistProvider(Tracks); UserData = new UserDataProvider(); LastfmApi = new LastfmApi(Artists); MusicManager = new MusicManager(); MusicManager.TrackChanged += MusicManager_TrackChanged; MusicManager.NewTrackOpened += MusicManager_NewTrackOpened; MusicStreamingPluginManager = new MusicStreamingPluginManager(); }
public PlaylistProvider(TrackProvider trackProvider) { _trackProvider = trackProvider; Playlists = new ObservableCollection <UserPlaylist>(); }
public PlaylistProvider(TrackProvider trackProvider) { _trackProvider = trackProvider; Playlists = new ObservableCollection<UserPlaylist>(); }