예제 #1
0
        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();
        }
예제 #2
0
 public GestureObserver(IManipulationControlAware target)
     : this(target, new RotationCalculator(), new ScaleCalculator())
 {
 }