/// <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; }
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); }
//Settings settings = new Settings(); public SettingsSelector() { InitializeComponent(); // var one = Settings.Instance.QualitySetting; mbApiInterface = new Plugin.MusicBeeApiInterface(); }
public PluginLogic(Plugin.MusicBeeApiInterface api) { mApi = api; }
public LibraryApiAdapter(Plugin.MusicBeeApiInterface api) { _api = api; }
public HueSettings_FRM() { InitializeComponent(); MBApiInterface = new Plugin.MusicBeeApiInterface(); }
public LyricsController(Plugin.MusicBeeApiInterface @interface) { _interface = @interface; }
public MusicBeeSyncHelper(Plugin.MusicBeeApiInterface apiInterface) { MbApiInterface = apiInterface; RefreshMusicBeePlaylists(); RefreshMusicBeeSongs(); }