Example #1
0
 void FireOnBookmarksChanged(BookmarksChangedEventArgs args)
 {
     if (OnBookmarksChanged != null)
     {
         OnBookmarksChanged(this, args);
     }
 }
Example #2
0
        void IBookmarks.Clear()
        {
            if (items.Count == 0)
            {
                return;
            }
            var evtArgs = new BookmarksChangedEventArgs(BookmarksChangedEventArgs.ChangeType.RemovedAll,
                                                        items.Cast <IBookmark>().ToArray());

            items.Clear();
            FireOnBookmarksChanged(evtArgs);
        }
Example #3
0
 void HandleBookmarksChanged(BookmarksChangedEventArgs args)
 {
     itemsRef = ImmutableArray.CreateRange(items);
     changeNotification.Post();
     OnBookmarksChanged?.Invoke(this, args);
 }