コード例 #1
0
        private User CreateUserScreen()
        {
            PrintColoredText("||| Create User |||");
            Console.WriteLine(_accountName);
            string potentialName = CleanString(Console.ReadLine());

            Console.WriteLine(_accountPassword);
            string potentialPass = Console.ReadLine();

            Console.WriteLine(_accountFirstName);
            string potentialFirstName = CleanString(Console.ReadLine());

            Console.WriteLine(_accountLastName);
            string potentialLastName = CleanString(Console.ReadLine());

            return(UserList.CreateUser(potentialName, potentialFirstName, potentialLastName, potentialPass));
        }