/// <summary> /// Display the Home Page and corresponding options. /// </summary> public void HomePage() { const int MIN_ANSWER = 1; const int MAX_ANSWER = 3; const int LOGIN = 1; const int CREATE_ACCOUNT = 2; const int EXIT = 3; bool bExit = false; string userInput; int answer; while (!bExit) { do { ConsoleDisplay.DisplayWelcomeMenu(); userInput = Console.ReadLine(); answer = ConsoleUtil.TryUserInputConvert(userInput); } while ((answer < MIN_ANSWER) || (answer > MAX_ANSWER)); switch (answer) { case LOGIN: if (Login()) { AccountPage(); } break; case CREATE_ACCOUNT: if (CreateAccount()) { AccountPage(); } break; case EXIT: bExit = true; break; } } }