Beispiel #1
0
        private void SaveClick(object obj)
        {
            Person temp = new Person();

            temp      = MVM.People.FirstOrDefault(x => x.UserName == User.UserName);
            temp.Cart = User.Cart;
            MVM.WriteXmlFile(MVM.People);
        }
Beispiel #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.");
        }