private void fireBookmarkAdded(Bookmark bookmark) { if (BookmarkAdded != null) { BookmarkAdded.Invoke(bookmark); } }
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); }
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); }
protected void OnBookmarkAdded() { BookmarkAdded?.Invoke(this, EventArgs.Empty); }