예제 #1
0
 private static void UserMenu(string UserChoiceMenu)
 {
     if (UserChoiceMenu == "D" || UserChoiceMenu == "d")// Dog Class
     {
         Dog.DogInfo();
     }
     else if (UserChoiceMenu == "V" || UserChoiceMenu == "v") //  Veterniary Class
     {
         Vet.VetInfor();
     }
     else if (UserChoiceMenu == "E" || UserChoiceMenu == "e")
     {
         return;
     }
 }
예제 #2
0
        private static void userChoiceMenu()
        {
            Console.WriteLine("[O] to return to back to owner\r\n[V] for Vet\r\n[E] for Exit");
            string choicesMenu = Console.ReadLine();

            if (choicesMenu == "O" || choicesMenu == "o")
            {
                Owner.OwnerInfo();
            }
            else if (choicesMenu == "V" || choicesMenu == "v")
            {
                Vet.VetInfor();
            }
            else if (choicesMenu == "E" || choicesMenu == "e")
            {
                return;
            }

            ValidatedUserResponse(choicesMenu);
        }