Exemple #1
0
 /// <summary>
 /// Move to the next item updating the currentItemIndex.
 /// </summary>
 protected void MoveToNext()
 {
     if (_currentItemIndex >= _items.Count)
         _currentItemIndex = _items.Count - 1;
     if (_controller != null)
         _currentItemIndex = _controller.NextItem(this, _currentItemIndex);
     else
         _currentItemIndex = _defaultController.NextItem(this, _currentItemIndex);
 }
 /// <summary>
 /// Move the current item to the next in list.
 /// </summary>
 private void MoveToNext()
 {
     if (_controller != null)
     {
         _currentItemIndex = _controller.NextItem(this, _currentItemIndex);
     }
     else
     {
         _currentItemIndex = _defaultController.NextItem(this, _currentItemIndex);
     }
 }