コード例 #1
0
ファイル: MusicDataManager.cs プロジェクト: caesay/Hurricane
        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();
        }
コード例 #2
0
 public PlaylistProvider(TrackProvider trackProvider)
 {
     _trackProvider = trackProvider;
     Playlists      = new ObservableCollection <UserPlaylist>();
 }
コード例 #3
0
ファイル: PlaylistProvider.cs プロジェクト: caesay/Hurricane
 public PlaylistProvider(TrackProvider trackProvider)
 {
     _trackProvider = trackProvider;
     Playlists = new ObservableCollection<UserPlaylist>();
 }