Пример #1
0
        private bool ProcessIndividualParents(bool redo)
        {
            GEDCOMIndividualRecord iRec      = fObj as GEDCOMIndividualRecord;
            GEDCOMFamilyRecord     familyRec = fNewVal as GEDCOMFamilyRecord;

            if (iRec == null || familyRec == null)
            {
                return(false);
            }

            if (fType == OperationType.otIndividualParentsDetach)
            {
                redo = !redo;
            }
            if (redo)
            {
                familyRec.AddChild(iRec);
            }
            else
            {
                familyRec.RemoveChild(iRec);
            }
            return(true);
        }