示例#1
0
        /// <summary>
        /// Create a new instance of ChapterList MB manager class
        /// </summary>
        /// <param name="mbapi">Plugin API from Music Bee</param>
        public Manager(Plugin.MusicBeeApiInterface mbapi)
        {
            _api   = mbapi;
            _timer = new Timer(100);
            //SkinElementColors = XmlOperations.GetSkinColors(_api.Setting_GetSkin());

            _timer.Elapsed += TimerOnElapsed;
        }
示例#2
0
 public DownloaderTask(Plugin.MusicBeeApiInterface api, PluginSettings settings)
 {
     mApi                               = api;
     mSettings                          = settings;
     mPendingVideos                     = new ConcurrentQueue <DownloadVideo>();
     mWorker                            = new BackgroundWorker();
     mWorker.DoWork                    += Run;
     mWorker.RunWorkerCompleted        += Completed;
     mWorker.WorkerSupportsCancellation = true;
 }
        public MainWindow(Plugin.MusicBeeApiInterface apiInterface)
        {
            InitializeComponent();

            MusicBeePlaylists = new ObservableCollection <CheckedListItem <MusicBeePlaylist> >();
            GooglePlaylists   = new ObservableCollection <CheckedListItem <Playlist> >();
            SpotifyPlaylists  = new ObservableCollection <CheckedListItem <SpotifyPlaylist> >();
            YoutubePlaylists  = new ObservableCollection <CheckedListItem <YoutubeMusicPlaylist> >();

            MusicBee = new MusicBeeSyncHelper(apiInterface);
            RefreshMusicBeePlaylists();

            Action <string> log = (s) => Dispatcher.Invoke(() => { Log(s); });

            Spotify = new SpotifySyncHelper(log);

            Google = new GoogleSyncHelper();

            Youtube = new YoutubeMusicSyncHelper(log);
        }
示例#4
0
 //Settings settings = new Settings();
 public SettingsSelector()
 {
     InitializeComponent();
     // var one = Settings.Instance.QualitySetting;
     mbApiInterface = new Plugin.MusicBeeApiInterface();
 }
示例#5
0
 public PluginLogic(Plugin.MusicBeeApiInterface api)
 {
     mApi = api;
 }
示例#6
0
 public LibraryApiAdapter(Plugin.MusicBeeApiInterface api)
 {
     _api = api;
 }
示例#7
0
 public HueSettings_FRM()
 {
     InitializeComponent();
     MBApiInterface = new Plugin.MusicBeeApiInterface();
 }
 public LyricsController(Plugin.MusicBeeApiInterface @interface)
 {
     _interface = @interface;
 }
示例#9
0
 public MusicBeeSyncHelper(Plugin.MusicBeeApiInterface apiInterface)
 {
     MbApiInterface = apiInterface;
     RefreshMusicBeePlaylists();
     RefreshMusicBeeSongs();
 }