static Project0RepoLayer p0Context = new Project0RepoLayer(); // create the context here to acceess it in all methods of this class static void Main(string[] args) { // p0Context.ManualCreateFloor(); // variables Console.Clear(); string usrChoice; do //enter program //greet user and see where they need to go. quit if an option listed isn't inputted { Console.WriteLine ("Welcome to the Abstract Museum, where we abstract out abstract art! What would you like to do?\n" + "1. Create User \n2. Login\n-1. Quit"); usrChoice = Console.ReadLine();//get user choice //initializing user inputs string un = "0"; //globawe uname outside loop to use later while (usrChoice == "1") { //init ui string fn = "0"; string ln = "0"; while (usrChoice != "-2") { while ((un == "0" || fn == "0" || ln == "0") && (usrChoice != "-2")) { //loop create player until acceptable values are given ///prompt for information to create player Console.Clear(); Console.WriteLine("We need some information before we can proceed: " + "\nPlease make sure that that all three inputs contain at least 3 characters and no more than 20!"); Console.Write("\nEnter a unique username: "******"\nEnter your first name: "); fn = ValidationOptions.ValidateInput(Console.ReadLine()); Console.Write("\nEnter your last name: "); ln = ValidationOptions.ValidateInput(Console.ReadLine()); Console.Write("\nIf you entered less than 2 or more than 20 characters for any inputs, we will prompt you to enter your information again. \nPress enter to continue..."); Console.ReadLine(); Console.Clear(); Console.WriteLine("We are creating user with" + $"\nUsername: {un} \nFirst Name: {fn} \nLast Name: {ln}"); Console.Write("\nIf you'd like to cancel, enter -2:"); usrChoice = Console.ReadLine(); if (usrChoice == "-2") { un = "0"; ln = "0"; fn = "0"; } } usrChoice = "-2"; } if (un != "0" || fn != "0" || ln != "0") { User user = p0Context.CreateUser(un, fn, ln); usrChoice = SignedIn.FirstMenu(user); } }//end choice 1 while (usrChoice == "2") { Console.Write("Great to see you again! You can quit to the main menu by entering '-1'. Enter your unique username: "******"-1") { try { un = ValidationOptions.ValidateInput(un); User user = p0Context.FindUser(un); usrChoice = SignedIn.FirstMenu(user); } catch (System.Exception) { Console.Clear(); Console.WriteLine("We were not able to locate that user.\n We will return you to the previous screen. Press enter to continue: "); Console.ReadLine(); usrChoice = "2"; } } else { Console.Clear(); usrChoice = "-1"; } } }while(usrChoice != "-1");//end program Console.Clear(); Console.Write("Thank you for your virtual stay at the Abstract Museum!"); }//end main