private void OnMouseModeChanged(TMouseMode arg) { if (MouseModeChanged != null) { MouseModeChanged(arg); } }
/// <summary> /// Updates annotation variables when the mousemode is changed /// </summary> /// <param name="value"></param> private void UpdateAnnotationOnMouseModeChanged(TMouseMode value) { if (value != TMouseMode.eMouseTextRecognitionMode) { strokes = new StrokeCollection(); } if (value != TMouseMode.eMouseMarkMode) { movingAnnotations = false; mouseOverAnnotationInMarkMode = false; } if (value != TMouseMode.eMouseClickAnnotationMode) { creatingClickAnnotation = false; } annotationPoints = null; selectedAnnotations.Clear(); }
private String translateMouseMode(TMouseMode mode) { switch (mode) { case TMouseMode.eMouseMarkMode: return("Mark Area Tool"); case TMouseMode.eMouseMoveMode: return("Hand Tool"); case TMouseMode.eMouseSelectMode: return("Text Selection Tool"); case TMouseMode.eMouseZoomMode: return("Zoom Tool"); case TMouseMode.eMouseDrawAnnotationMode: return("Draw Annotation Tool"); case TMouseMode.eMouseClickAnnotationMode: return("Click Annotation Tool"); case TMouseMode.eMouseTextRecognitionMode: return("Start Text Recognition Tool"); default: return("undefined mouse mode"); } }