public void SkipToPrevious() { var indexOfCurrent = TravelTrackingOptions.IndexOf(CurrentTracker); if (indexOfCurrent == 0) { return; } CurrentTracker = TravelTrackingOptions.ElementAt(indexOfCurrent - 1); }
public void SkipToNext() { var indexOfCurrent = TravelTrackingOptions.IndexOf(CurrentTracker); if (indexOfCurrent == TravelTrackingOptions.Count - 1) { return; } CurrentTracker = TravelTrackingOptions.ElementAt(indexOfCurrent + 1); }
public bool IsNotFirst() { return(TravelTrackingOptions.IndexOf(CurrentTracker) > 0); }
public bool IsNotLast() { var indexOfCurrent = TravelTrackingOptions.IndexOf(CurrentTracker); return(indexOfCurrent < TravelTrackingOptions.Count - 1); }