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); }