예제 #1
0
        public void Load(string pluginFolder)
        {
            if (_isLoaded)
                throw new InvalidOperationException();

            _pluginDirectory = new DirectoryInfo(pluginFolder);
            if (!_pluginDirectory.Exists)
                _pluginDirectory.Create();

            var pluginDataFile = new FileInfo(Path.Combine(_pluginDirectory.FullName, "PluginInfo.json"));
            MusicStreamingPluginManager = new MusicStreamingPluginManager();

        }
예제 #2
0
        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();
        }