Пример #1
0
 /// <summary>
 /// Move to last one
 /// </summary>
 public void MoveLast()
 {
     if (_CurrentIndex > 0)
     {
         _CurrentIndex--;
     }
     else
     {
         _CurrentIndex = AllUris.Count() - 1;
     }
 }
Пример #2
0
 /// <summary>
 /// Move to next one
 /// </summary>
 public void MoveNext()
 {
     if (_CurrentIndex < AllUris.Count() - 1)
     {
         _CurrentIndex++;
     }
     else
     {
         _CurrentIndex = 0;
     }
 }
Пример #3
0
 /// <summary>
 /// Check Current UrlInfo is the last one of Conllection
 /// </summary>
 /// <returns></returns>
 public bool IsLast()
 {
     return(AllUris.Count() == 0 || CurrentUrl == AllUris.LastOrDefault());
 }