コード例 #1
0
ファイル: User.cs プロジェクト: sdsdesu/WishList_WindowsApps
 //Function 2)AddContact - add single user to contact list
 public void addContact(User contact)
 {
     //AppController gets given email string, looks in database for user retrieves it and calls this function
     Contacts.Add(contact);
     foreach (Wishlist w in contact.MyWishlists)
     {
         OthersWishlists.Add(w);
     }
 }
コード例 #2
0
ファイル: User.cs プロジェクト: Impling/Wishlist_Version2_G13
        //Function 2)AddContact - add single user to contact list
        public void addContact(User contact)
        {
            //AppController gets given email string, looks in database for user retrieves it and calls this function
            //Contacts.Add(contact);
            foreach (Wishlist w in contact.MyWishlists)
            {
                OthersWishlists.Add(w);
            }

            //!!!!Make sure that when we add contact it is added to the DbContext, + Added to observable list, (should reload correctly on page reload)
        }