void AddParentAndChildrenFacts(Individual child, Individual parent, ParentalRelationship.ParentalRelationshipType prType) { if (parent != null) { string parentComment; string childrenComment; if (prType == ParentalRelationship.ParentalRelationshipType.UNKNOWN) { parentComment = $"Child of {parent.IndividualID}: {parent.Name}"; childrenComment = $"Parent of {child.IndividualID}: {child.Name}"; } else { string titlecase = EnhancedTextInfo.ToTitleCase(prType.ToString().ToLower()); parentComment = $"{titlecase} child of {parent.IndividualID}: {parent.Name}"; childrenComment = $"{titlecase} parent of {child.IndividualID}: {child.Name}"; } Fact parentFact = new Fact(parent.IndividualID, Fact.PARENT, child.BirthDate, child.BirthLocation, parentComment, true, true); child.AddFact(parentFact); Fact childrenFact = new Fact(child.IndividualID, Fact.CHILDREN, child.BirthDate, child.BirthLocation, childrenComment, true, true); parent.AddFact(childrenFact); } }