예제 #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);
        }