Example #1
0
        public TramStop getNextTramStop()
        {
            int i = 0;

            for (; i < track.getTramStopList().Count; i++)
            {
                if (currentTramStop.Equals(track.getTramStopList()[i]))
                {
                    break;
                }
            }

            if (track.getTramStopList().Count > i + 1)
            {
                return(track.getTramStopList()[i + 1]);
            }
            else
            {
                return(null);
            }
        }