// ------------------ _annStore_StoreContentChanged ------------------- void _annStore_StoreContentChanged(object sender, StoreContentChangedEventArgs e) { if (e.Action == StoreContentAction.Deleted) { return; } Annotation ann = e.Annotation; if (ann.Cargos.Count > 0) { AnnotationResource annResource = ann.Cargos[0] as AnnotationResource; if (annResource.Name == "Highlight") { AddBookmarkOrComment(BookmarkList, ann); } else { AddBookmarkOrComment(CommentsList, ann); } } else { AddBookmarkOrComment(CommentsList, ann); } }
private void AnnotationStore_StoreContentChanged(object sender, StoreContentChangedEventArgs e) { // Bind to refreshed annotations store BindToAnnotations(_store.GetAnnotations()); }