public RpTrayIcon(IConfig config, ILog log, IToastHandler toastHandler) { _config = config; _log = log; _toastHandler = toastHandler; contextMenu = new ContextMenu(); NotifyIcon = new NotifyIcon(); contextMenuBuilderCancellationTokenSource = new CancellationTokenSource(); }
public SongInfoListener(IRpApiHandler apiHandler, IConfig config, ILog log, IToastHandler toastHandler) { _apiHandler = apiHandler; _config = config; _log = log; _toastHandler = toastHandler; NextSongWaiterCancellationTokenSource = new CancellationTokenSource(); listenerCancellationTokenSource = new CancellationTokenSource(); Application.ApplicationExit += (sender, e) => listenerCancellationTokenSource.Cancel(); }
public RpApplicationCore(IConfig config, IRpApiHandler apiHandler, IToastHandler toastHandler, Foobar2000Watcher foobar2000Watcher, MusicBeeWatcher musicBeeWatcher, ISongInfoListener songInfoListener, ILog log, RpTrayIcon rpTrayIcon, ShortcutHelper shortcutHelper) { _log = log; _apihandler = apiHandler; _config = config; _toastHandler = toastHandler; _songInfoListener = songInfoListener; _foobar2000Watcher = foobar2000Watcher; _musicBeeWatcher = musicBeeWatcher; _rpTrayIcon = rpTrayIcon; _shortcutHelper = shortcutHelper; EventCounter = 0; Init(); }