public GestureObserver(IManipulationControlAware target, IRotationCalculator rotationCalculator, IScaleCalculator scaleCalculator) { if (rotationCalculator == null) { throw new ArgumentNullException("rotationCalculator must be passed"); } else if (scaleCalculator == null) { throw new ArgumentNullException("scaleCalculator must be passed"); } else if (target == null) { throw new ArgumentNullException("target must be passed"); } _target = target; _rotationCalculator = rotationCalculator; _scaleCalculator = scaleCalculator; Initalize(); }
public GestureObserver(IManipulationControlAware target) : this(target, new RotationCalculator(), new ScaleCalculator()) { }