Beispiel #1
0
        public List<Friend> GetFriends(Contact contact)
        {
            var doc = GetDocument();

            var results = from friend in doc.Descendants("Friend")
                          select FromXElement(friend);

            return results.ToList();
        }
        private void Button_Click(object sender, RoutedEventArgs e)
        {
            Contact C = new Contact();
            C.Number = NumberText.Text;
            C.NumberType = NumberTypeText.Text;
            C.Person = person;

            person.Contacts.Add(C);

            DialogResult = true;
        }
Beispiel #3
0
 public static DAL.User getUser_Dal(User_DTO user)
 {
     DAL.User newUserDAL = new DAL.User();
     newUserDAL.id         = user.id;
     newUserDAL.mail       = user.mail;
     newUserDAL.password   = user.password;
     newUserDAL.overide    = user.overide;
     newUserDAL.attachment = user.attachment;
     if (user.contact_list != null)
     {
         foreach (var item in user.contact_list)
         {
             DAL.Contact c = new DAL.Contact();
             c.userId      = user.id;
             c.mailContact = item;
             db.Contacts.Add(c);
         }
     }
     return(newUserDAL);
 }
 partial void DeleteContact(Contact instance);
 partial void UpdateContact(Contact instance);
 partial void InsertContact(Contact instance);