Пример #1
0
        public void SkipToPrevious()
        {
            var indexOfCurrent = TravelTrackingOptions.IndexOf(CurrentTracker);

            if (indexOfCurrent == 0)
            {
                return;
            }

            CurrentTracker = TravelTrackingOptions.ElementAt(indexOfCurrent - 1);
        }
Пример #2
0
        public void SkipToNext()
        {
            var indexOfCurrent = TravelTrackingOptions.IndexOf(CurrentTracker);

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

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

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