Пример #1
0
 /// <summary>
 /// Performs the business logic for updating the natural siblings of a child.
 /// </summary>
 public static void UpdateSiblings(PeopleCollection family, Person child)
 {
     foreach (Person p in child.NaturalParents)
     {
         foreach (Person c in p.NaturalChildren)
         {
             if (c != child && !family.Current.Siblings.Contains(c))
             {
                 RelationshipHelper.AddExistingSibling(family, family.Current, c);
             }
         }
     }
 }