Exemple #1
0
        public Boolean addAdult(String firstName, String lastName, Registrant.groupType group)
        {
            if (this.registrant == null)
            {
                return(false);
            }
            if (this.registrant.adults == null)
            {
                this.registrant.adults = new List <Adult>();
            }
            Adult addAdult = new Adult();

            addAdult.firstName = firstName;
            addAdult.lastName  = lastName;
            addAdult.lastName  = (int)group == 10 ? "Adult" : "Professional";
            return(true);
        }
Exemple #2
0
        public Boolean createMainRegistrant(String firstName, String lastName, Registrant.groupType group, String street, String city,
                                            String state, String zip, String phonenum, String email)
        {
            this.registrant = new Registrant();

            this.registrant.currentPrice = (int)group;

            this.registrant.firstName = firstName;
            this.registrant.lastName  = lastName;
            this.registrant.group     = (int)group == 10 ? "Adult" : "Professional";
            this.registrant.street    = street;
            this.registrant.city      = city;
            this.registrant.state     = state;
            this.registrant.zip       = zip;
            this.registrant.phone     = phonenum;
            this.registrant.email     = email;
            return(true);
        }