コード例 #1
0
        public bool RemoveChild(GDMIndividualRecord child)
        {
            if (child == null)
            {
                return(false);
            }

            DeleteChild(child);
            child.DeleteChildToFamilyLink(this);

            return(true);
        }
コード例 #2
0
        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;
        }