Ejemplo n.º 1
0
        /// <summary>
        /// Removes the wife.
        /// </summary>
        /// <param name="indi">The wife.</param>
        public void RemoveWife(GedcomIndividualRecord indi)
        {
            GedcomFamilyLink link;

            if (wife == indi.XRefID)
            {
                wife = string.Empty;
            }

            if (indi.SpouseInFamily(XRefID, out link))
            {
                indi.SpouseIn.Remove(link);
            }
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Removes the husband.
        /// </summary>
        /// <param name="indi">The husband.</param>
        public void RemoveHusband(GedcomIndividualRecord indi)
        {
            GedcomFamilyLink link;

            if (husband == indi.XRefID)
            {
                husband = string.Empty;
            }

            if (indi.SpouseInFamily(XRefID, out link))
            {
                indi.SpouseIn.Remove(link);
            }
        }