Ejemplo n.º 1
0
 void IBookmarksServiceListener.Initialize(BookmarksService bookmarksService) =>
 new BookmarksListSettings(uiDispatcher, settingsService, bookmarkLocationSerializerService, bookmarksService);
Ejemplo n.º 2
0
 void IBookmarksServiceListener.Initialize(BookmarksService bookmarksService)
 {
     this.bookmarksService = bookmarksService;
     uiDispatcher.UI(() => Initialize_UI());
 }
Ejemplo n.º 3
0
 void IBookmarksServiceListener.Initialize(BookmarksService bookmarksService)
 {
     bookmarksService.BookmarksChanged  += BookmarksService_BookmarksChanged;
     bookmarksService.BookmarksModified += BookmarksService_BookmarksModified;
 }
Ejemplo n.º 4
0
 BookmarkMarkerDocumentViewerListener(BookmarksService bookmarksService)
 {
     // Nothing, we just need to make sure that BookmarksService gets imported and constructed
 }
Ejemplo n.º 5
0
 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());
 }
 private async void RestoreBookmarks()
 {
     ViewModel.Bookmarks = new ObservableCollection <Bookmark>(await BookmarksService.GetBookmarks());
 }