Exemplo n.º 1
0
 public Person(string aType, string uName, string pword, string first, string last, Address address, string emailAddy, CC cc)
 {
     accountType = aType;
     userName    = uName;
     password    = pword;
     firstName   = first;
     lastName    = last;
     HomeAddress = address;
     email       = emailAddy;
     creditCard  = cc;
     cart        = new Cart();
 }
Exemplo n.º 2
0
//METHODS
        //Add Person to People
        private void AddPerson()
        {
            Address = new Address(HouseNumber, StreetName, City, State, Zip);
            CC      = new CC(PayType, CardNumber, ExpMo, ExpYr, CVV);
            User    = new Person(AccountType,
                                 userName,
                                 boundPassword,
                                 firstName,
                                 lastName,
                                 Address,
                                 email,
                                 CC);
            People.Add(User);
            MVM.WriteXmlFile(People);
            ClearInfo();
            First = 0;
            MessageBox.Show("Account Created.");
        }