Exemple #1
0
        public void SkipToPrevious()
        {
            var indexOfCurrent = TravelTrackingOptions.IndexOf(CurrentTracker);

            if (indexOfCurrent == 0)
            {
                return;
            }

            CurrentTracker = TravelTrackingOptions.ElementAt(indexOfCurrent - 1);
        }
Exemple #2
0
        public void SkipToNext()
        {
            var indexOfCurrent = TravelTrackingOptions.IndexOf(CurrentTracker);

            if (indexOfCurrent == TravelTrackingOptions.Count - 1)
            {
                return;
            }

            CurrentTracker = TravelTrackingOptions.ElementAt(indexOfCurrent + 1);
        }
Exemple #3
0
 public bool IsNotFirst()
 {
     return(TravelTrackingOptions.IndexOf(CurrentTracker) > 0);
 }
Exemple #4
0
        public bool IsNotLast()
        {
            var indexOfCurrent = TravelTrackingOptions.IndexOf(CurrentTracker);

            return(indexOfCurrent < TravelTrackingOptions.Count - 1);
        }