private void FireScrolled(LoopListArgs args) { if (args == null) { throw new ArgumentNullException("args"); } Scrolled(this, args); }
void AnimCompletedY() { _animating--; if (_animating == 0) { LoopListArgs lla = _lastY > 0 ? new LoopListArgs(Direction.Down, _currentNode.Id) : new LoopListArgs(Direction.Top, _currentNode.Id); _lastY = 0; FireScrolled(lla); } }
void AnimCompletedX() { _animating--; if (_animating == 0) { LoopListArgs lla = _lastX > 0 ? new LoopListArgs(Direction.Right, _currentNode.Id) : new LoopListArgs(Direction.Left, _currentNode.Id); _lastX = 0; FireScrolled(lla); } }
private void FireScrolled(LoopListArgs args) { if (args == null) throw new ArgumentNullException("args"); Scrolled(this, args); }