Exemplo n.º 1
0
 public void SelectDictionaryEntry(PdfAnnotationGotFocusEventArgs e)
 {
     if (e.Annotation.Name.StartsWith(DictionaryBookmark.DictionaryEntry))
     {
         DictionaryBookmark bookmark = DictionaryBookmarks.FirstOrDefault(x => x.Name == e.Annotation.Name);
         if (bookmark != null)
         {
             DictionaryBookmarksView.MoveCurrentTo(bookmark);
         }
     }
 }
Exemplo n.º 2
0
        public void DeleteMarkup(PdfAnnotationDeletingEventArgs e)
        {
            if (MessageBoxService.ShowMessage("Do you want to delete selected item?", "Confirm Delete", MessageButton.YesNo, MessageIcon.Question) == MessageResult.No)
            {
                e.Cancel = true;
                return;
            }

            DictionaryBookmark bookmark = DictionaryBookmarks.FirstOrDefault(x => x.Name == e.Annotation.Name);

            if (bookmark != null)
            {
                DictionaryBookmarks.Remove(bookmark);
            }
        }