private void fireBookmarkAdded(Bookmark bookmark)
 {
     if (BookmarkAdded != null)
     {
         BookmarkAdded.Invoke(bookmark);
     }
 }
Example #2
0
        public static async Task AddBookmark(Bookmark bookmark, int index)
        {
            List <Bookmark> Bookmarks = (await Helpers.Storage.GetLocalClass <List <Bookmark> >("SavedBookmarks")) ?? DefaultBookmarks;

            Bookmarks.Insert(index, bookmark);

            await Helpers.Storage.StoreLocalClass("SavedBookmarks", Bookmarks);

            BookmarkAdded?.Invoke(bookmark);
        }
Example #3
0
 private void CurrentBrowser_AddBookmark(object sender, EventArgs e)
 {
     this.InvokeIfRequired(() => OsirtHelper.Favourites[CurrentTab.Browser.Title] = CurrentTab.Browser.URL);
     OsirtHelper.WriteFavourites();
     BookmarkAdded?.Invoke(this, EventArgs.Empty);
 }
Example #4
0
 protected void OnBookmarkAdded()
 {
     BookmarkAdded?.Invoke(this, EventArgs.Empty);
 }