Exemplo n.º 1
0
 private static void SetColor(ILocust locust)
 {
     switch (locust.ChitinColor)
     {
         case "Red":
             {
                 Console.ForegroundColor = ConsoleColor.DarkRed;
                 break;
             }
         case "Green":
             {
                 Console.ForegroundColor = ConsoleColor.Green;
                 break;
             }
         case "Blue":
             {
                 Console.ForegroundColor = ConsoleColor.Blue;
                 break;
             }
         case "Pale-Green":
             {
                 Console.ForegroundColor = ConsoleColor.Yellow;
                 break;
             }
         case "Ashen":
             {
                 Console.ForegroundColor = ConsoleColor.DarkGray;
                 break;
             }
         default:
             Console.ResetColor();
             break;
     }
 }
Exemplo n.º 2
0
        private static void SetColor(ILocust locust)
        {
            switch (locust.ChitinColor)
            {
            case "Red":
            {
                Console.ForegroundColor = ConsoleColor.DarkRed;
                break;
            }

            case "Green":
            {
                Console.ForegroundColor = ConsoleColor.Green;
                break;
            }

            case "Blue":
            {
                Console.ForegroundColor = ConsoleColor.Blue;
                break;
            }

            case "Pale-Green":
            {
                Console.ForegroundColor = ConsoleColor.Yellow;
                break;
            }

            case "Ashen":
            {
                Console.ForegroundColor = ConsoleColor.DarkGray;
                break;
            }

            default:
                Console.ResetColor();
                break;
            }
        }