Ejemplo n.º 1
0
 public void NotifyDestinationFound(CurrentDestinationName destinationName)
 {
     if (destinationName == currentDestination)
     {
         ChangeCurrentDestination();
         UpdateDestination();
     }
 }
Ejemplo n.º 2
0
        private void ChangeCurrentDestination()
        {
            int currentIndex = (((int)currentDestination) + 1) % Enum.GetValues(typeof(CurrentDestinationName)).Length;

            currentDestination = (CurrentDestinationName)currentIndex;
        }