/// <summary> /// Create a new user account. If an account is already created /// with the given username, it will ask you to try another username. /// </summary> public bool CreateAccount() { bool bCreated; string username, password; ConsoleDisplay.DisplayCreateAccount(); ConsoleDisplay.DisplayEnterUsername(); username = Console.ReadLine(); ConsoleDisplay.DisplayEnterPassword(); password = ConsoleUtil.EnterPassword(); bCreated = OnCreateUserEvent(username, password); if (!bCreated) { ConsoleDisplay.ErrorUsernameTaken(username); } else { mLoggedInUsername = username; } return(bCreated); }