private void Calibration_PointAdded(object source, PointAddedEventArgs args) { if (args.NumberOfPoints < 4) { Events.PublishOnUIThread(new FollowMouseEvent(args.LastPoint)); } else { Events.PublishOnUIThread(new FollowMouseEvent(new Point(-1, -1))); } }
private void OnPointAdded(object source, PointAddedEventArgs args) { if (args.NumberOfPoints == 1) { showTopLeftArrow = false; showTopRightArrow = true; } else if (args.NumberOfPoints == 2) { showTopRightArrow = false; showBottomRightArrow = true; } else if (args.NumberOfPoints == 3) { showBottomRightArrow = false; showBottomLeftArrow = true; } else if (args.NumberOfPoints == 4) { showBottomLeftArrow = false; } }