public override void Assign(GDMTag source) { GDMFamilyRecord sourceRec = source as GDMFamilyRecord; if (sourceRec == null) { throw new ArgumentException(@"Argument is null or wrong type", "source"); } base.Assign(source); fHusband.Assign(sourceRec.fHusband); fWife.Assign(sourceRec.fWife); fStatus = sourceRec.fStatus; AssignList(sourceRec.fChildren, fChildren); }
public override void Clear() { base.Clear(); RemoveSpouse(fHusband.Individual); RemoveSpouse(fWife.Individual); int num = fChildren.Count; for (int i = 0; i < num; i++) { GDMIndividualRecord child = fChildren[i].Individual; child.DeleteChildToFamilyLink(this); } fChildren.Clear(); fStatus = GDMMarriageStatus.Unknown; }