/// <see cref="IUIMouseSensor.DetachFrom"/> public void DetachFrom(IUIMouseSensor target) { if (target == null) { throw new ArgumentNullException("target"); } target.Enter -= this.PropagateEnter; target.Leave -= this.PropagateLeave; target.Move -= this.PropagateMove; target.ButtonDown -= this.PropagateButtonDown; target.ButtonUp -= this.PropagateButtonUp; target.Click -= this.PropagateClick; target.DoubleClick -= this.PropagateDoubleClick; target.Wheel -= this.PropagateWheel; target.StateReset -= this.PropagateReset; }
/// <see cref="IUIMouseSensor.AttachTo"/> public void AttachTo(IUIMouseSensor target) { if (target == null) { throw new ArgumentNullException("target"); } target.Enter += this.PropagateEnter; target.Leave += this.PropagateLeave; target.Move += this.PropagateMove; target.ButtonDown += this.PropagateButtonDown; target.ButtonUp += this.PropagateButtonUp; target.Click += this.PropagateClick; target.DoubleClick += this.PropagateDoubleClick; target.Wheel += this.PropagateWheel; target.StateReset += this.PropagateReset; }