/// <summary>
        /// Annotation building is finished.
        /// </summary>
        private void AnnotationVisualTool_AnnotationBuildingFinished(object sender, AnnotationViewEventArgs e)
        {
            if (e.AnnotationView.Data.Comment != null)
            {
                SetAnnotationCommentLocation(e.AnnotationView.Data.Comment);
            }

            _annotationVisualTool.AnnotationBuildingFinished -= AnnotationVisualTool_AnnotationBuildingFinished;
        }
 /// <summary>
 /// Handles the AnnotationViewer.AnnotationTransformingFinished event.
 /// </summary>
 private void AnnotationViewer_AnnotationTransformingFinished(
     object sender,
     AnnotationViewEventArgs e)
 {
     if (IsEnabled)
     {
         // adds a log message about finishing of the annotation view transformation
         AddLogMessage(string.Format("{0}: TransformingFinished: {1}", GetAnnotationInfo(e.AnnotationView), GetInteractionControllerInfo(e.AnnotationView.InteractionController)));
     }
 }
예제 #3
0
        /// <summary>
        /// Annotation building is finished.
        /// </summary>
        private void AnnotationTool_AnnotationBuildingFinished(object sender, AnnotationViewEventArgs e)
        {
            if (_commentToolEnabledBeforeAnnotationBuilding != null)
            {
                if (commentsControl1.IsCommentsOnViewerVisible &&
                    AnnotationTool.AnnotationInteractionMode == AnnotationInteractionMode.Author)
                {
                    CommentTool.Enabled = _commentToolEnabledBeforeAnnotationBuilding.Value;

                    UpdateUI();
                }
            }

            SelectComment(e.AnnotationView);
        }
예제 #4
0
        /// <summary>
        /// Annotation building is started.
        /// </summary>
        private void AnnotationTool_AnnotationBuildingStarted(object sender, AnnotationViewEventArgs e)
        {
            if (_commentToolEnabledBeforeAnnotationBuilding == null)
            {
                if (commentsControl1.IsCommentsOnViewerVisible &&
                    AnnotationTool.AnnotationInteractionMode == AnnotationInteractionMode.Author)
                {
                    _commentToolEnabledBeforeAnnotationBuilding = CommentTool.Enabled;

                    CommentTool.Enabled = false;

                    UpdateUI();
                }
            }
        }