// Token: 0x060062C6 RID: 25286 RVA: 0x001BB504 File Offset: 0x001B9704 internal static void OnDeleteStickyNotesCommand(object sender, ExecutedRoutedEventArgs e) { DependencyObject dependencyObject = sender as DependencyObject; if (dependencyObject != null) { AnnotationHelper.DeleteTextStickyNotesForSelection(AnnotationService.GetService(dependencyObject)); AnnotationHelper.DeleteInkStickyNotesForSelection(AnnotationService.GetService(dependencyObject)); } }
// Token: 0x060062C7 RID: 25287 RVA: 0x001BB534 File Offset: 0x001B9734 internal static void OnDeleteAnnotationsCommand(object sender, ExecutedRoutedEventArgs e) { FrameworkElement frameworkElement = sender as FrameworkElement; if (frameworkElement != null) { ITextSelection textSelection = AnnotationHelper.GetTextSelection(frameworkElement); if (textSelection != null) { AnnotationService service = AnnotationService.GetService(frameworkElement); AnnotationHelper.DeleteTextStickyNotesForSelection(service); AnnotationHelper.DeleteInkStickyNotesForSelection(service); if (!textSelection.IsEmpty) { AnnotationHelper.ClearHighlightsForSelection(service); } } } }