Exemplo n.º 1
0
        /// <summary>
        ///   Splits the Data field into Child CONT records
        /// </summary>
        public void SplitData()
        {
            string[] data = Data.Split(new[] { '\n' });

            if (data.Length > 1)
            {
                //The original Data field holds the first part
                Data = data[0];

                //Add CONT records for eacdh other part
                for (int i = 1; i < data.Length; i++)
                {
                    ChildRecords.Insert(i - 1, new GEDCOMRecord(Level + 1, "", "", "CONT", data[i]));
                }
            }
        }