Esempio n. 1
0
        public void CheckAcocountCreation()
        {
            UI.DisplayCheckToGoBack();
            switch (UI.GetUserInput())
            {
            case "1":
                SetUserFirstName();
                break;

            case "2":
                SetUserFirstName();
                break;

            case "3":
                SetUserLastName();
                break;

            case "4":
                SetPassWord();
                break;

            case "5":
                SetGender();
                break;

            case "6":
                SetPhoneNumber();
                break;

            case "7":
                SetZipCode();
                break;

            case "8":
                SetState();
                break;

            case "9":
                SetCity();
                break;

            case "10":
                SetStreet();
                break;

            case "11":
                SetAddressNumber();
                break;

            case "12":
                CreateAccount();
                break;

            case "13":
                if (management.CheckPreviousUserName(userName) == false)
                {
                    SendNewAccountInformation();
                }
                else
                {
                    UI.DisplayUsedUserName();
                    CheckAcocountCreation();
                }
                // run this shit
                break;

            default:
                CheckAcocountCreation();
                break;
            }
        }