public BookmarksListSettings(UIDispatcher uiDispatcher, ISettingsService settingsService, BookmarkLocationSerializerService bookmarkLocationSerializerService, BookmarksService bookmarksService) { this.uiDispatcher = uiDispatcher ?? throw new ArgumentNullException(nameof(uiDispatcher)); this.settingsService = settingsService ?? throw new ArgumentNullException(nameof(settingsService)); this.bookmarkLocationSerializerService = bookmarkLocationSerializerService ?? throw new ArgumentNullException(nameof(bookmarkLocationSerializerService)); this.bookmarksService = bookmarksService ?? throw new ArgumentNullException(nameof(bookmarksService)); bookmarksService.BookmarksChanged += BookmarksService_BookmarksChanged; bookmarksService.BookmarksModified += BookmarksService_BookmarksModified; uiDispatcher.UI(() => Load()); }
public BookmarksSerializer(ISettingsService settingsService, BookmarkLocationSerializerService bookmarkLocationSerializerService) { this.settingsService = settingsService ?? throw new ArgumentNullException(nameof(settingsService)); this.bookmarkLocationSerializerService = bookmarkLocationSerializerService ?? throw new ArgumentNullException(nameof(bookmarkLocationSerializerService)); }
BookmarksListSettingsListener(UIDispatcher uiDispatcher, ISettingsService settingsService, BookmarkLocationSerializerService bookmarkLocationSerializerService) { this.uiDispatcher = uiDispatcher; this.settingsService = settingsService; this.bookmarkLocationSerializerService = bookmarkLocationSerializerService; }