public void OnSpin(SpinEventArgs e) { if (e == null) { throw new ArgumentNullException("e"); } if (e.Direction == SpinDirection.Increase) { DoIncrement(); } else { DoDecrement(); } }