Beispiel #1
0
 private void AnnotationService_AnnotationDeleted(object sender, AnnotationEventArgs e)
 {
     if (this.MatchedAnnotation != e.Annotation)
     {
         return;
     }
     this.MatchedAnnotation = Enumerable.ElementAtOrDefault <AnnotationSceneNode>((IEnumerable <AnnotationSceneNode>) this.matches, this.matches.IndexOf(this.MatchedAnnotation) - 1);
 }
        private void AnnotationViewer_AnnotationCreated(object sender, AnnotationEventArgs e)
        {
            var txt = e.Annotation as TextAnnotation;

            if (txt != null)
            {
                txt.EditMode = true;
            }

            var ca = e.Annotation as CalloutAnnotation;

            if (ca != null)
            {
                ca.EditMode = true;
            }

            e.Annotation.Selected         = true;
            e.Annotation.ContextMenuStrip = contextMenuStrip1;
            EnableDisableMenuAndToolbarItems();
        }
 private void AnnotationViewer_AnnotationRotated(object sender, AnnotationEventArgs e)
 {
     EnableDisableMenuAndToolbarItems();
 }
Beispiel #4
0
 private void OnAnnotationCreated(object sender, AnnotationEventArgs e)
 {
     graphDisplayPanel.AddAnnotationToGraph(e.Time, e.Comment);
 }