Exemplo n.º 1
0
        private void RunUserInput(int input)
        {
            switch (input)
            {
            case 1:
                RunSearch();
                RunUserMenus();
                return;

            case 2:
                CustomerInterface.UpdateClientInfo(client);
                RunUserMenus();
                return;

            case 3:
                ApplyForAdoption();
                RunUserMenus();
                return;

            case 4:
                CheckAdoptionStatus();
                RunUserMenus();
                return;

            default:
                UserInterface.DisplayUserOptions("Input not accepted please try again");
                return;
            }
        }
Exemplo n.º 2
0
 private void CheckIfAccountComplete()
 {
     if (client.homeSize == null || client.kids == null || client.income == null)
     {
         UserInterface.DisplayUserOptions("Account not up to date would you like to update your account?");
         string input = UserInterface.GetUserInput();
         if (input == "yes" || input == "y")
         {
             Console.Clear();
             CustomerInterface.UpdateClientInfo(client);
         }
         else
         {
             Console.Clear();
             return;
         }
     }
 }