Esempio n. 1
0
 void OnDeleteAnnotationCommandCanExecute(object sender, CanExecuteRoutedEventArgs e)
 {
     if (EditingContextUtilities.GetSingleSelectedModelItem(this.Context) == this.ModelItem)
     {
         ContextMenuUtilities.OnDeleteAnnotationCommandCanExecute(e, this.Context, this.FindSwitch());
     }
 }
Esempio n. 2
0
 void OnEditAnnotationCommandCanExecute(object sender, CanExecuteRoutedEventArgs e)
 {
     if (EditingContextUtilities.GetSingleSelectedModelItem(this.Context) == this.ModelItem)
     {
         // call the same method as delete annotation command
         ContextMenuUtilities.OnDeleteAnnotationCommandCanExecute(e, this.Context, this.FindTryCatch());
     }
 }
Esempio n. 3
0
 void OnDeleteAnnotationCommandExecuted(object sender, ExecutedRoutedEventArgs e)
 {
     ContextMenuUtilities.OnDeleteAnnotationCommandExecuted(e, this.FindSwitch());
 }
Esempio n. 4
0
 void OnEditAnnotationCommandExecuted(object sender, ExecutedRoutedEventArgs e)
 {
     ContextMenuUtilities.OnEditAnnotationCommandExecuted(e, this.FindTryCatch());
 }