/// <summary> /// Currents the spouses. /// </summary> /// <param name="hlinkFamily"> /// The hlink family. /// </param> /// <returns> /// </returns> public HLinkPersonModelCollection GetCurrentSpouses(HLinkFamilyModel hlinkFamily) { HLinkPersonModelCollection t = new HLinkPersonModelCollection(); // Handle the case where there is no data. if (FamilyData.Count == 0) { return(t); } t.Add((HLinkPersonModel)FamilyData.GetModelFromHLink(hlinkFamily).GMother); return(t); }
/// <summary> /// Gets any children of the family. /// </summary> /// <returns> /// </returns> public HLinkPersonModelCollection GetChildren(HLinkFamilyModel hlinkFamily) { HLinkPersonModelCollection t = new HLinkPersonModelCollection(); // Handle the case where there is no data. if (FamilyData.Count == 0) { return(new HLinkPersonModelCollection()); } // TODO fix this if (FamilyData.GetModelFromHLink(hlinkFamily).GChildRefCollection.Count > 0) { t.Add((HLinkPersonModel)FamilyData.GetModelFromHLink(hlinkFamily).GChildRefCollection[0]); return(t); } else { return(null); } }