Beispiel #1
0
        private void WrapUpMove(AgentAnnotationViewModel vm)
        {
            SetNeedsDisplay();

            vm.AnnotationTools.Type = null;
            vm.AnnotationTools.ClearAllActive();
            vm.IsEditing = false;
        }
Beispiel #2
0
        private void PopulateCurrentMove(PointF pt, AgentAnnotationViewModel vm)
        {
            var point = ToAnnotationPoint(pt);
            var type  = vm.AnnotationTools.Type.Value;

            currentBuilder = vm.CreateBuilder(type);
            currentBuilder.OnNextPoint(point);

            var annotation = vm.CreateAnnotationViewModel(currentBuilder.Annotation);

            vm.AddInProgressAnnotation(annotation);
        }