예제 #1
0
        private void CheckPointerWithNotes(GDMPointerWithNotes ptr)
        {
            GDMRecord val = fTree.GetPtrValue <GDMRecord>(ptr);

            if (!string.IsNullOrEmpty(ptr.XRef) && val == null)
            {
                ptr.XRef = string.Empty;
            }

            CheckTagWithNotes(ptr);
        }
예제 #2
0
        private static void CheckPointerWithNotes(GDMTree tree, GEDCOMFormat format, GDMPointerWithNotes ptr)
        {
            GDMRecord val = ptr.Value;

            if (!string.IsNullOrEmpty(ptr.XRef) && val == null)
            {
                ptr.Value = null;
            }

            CheckTagWithNotes(tree, format, ptr);
        }
예제 #3
0
        private static void CheckPointerWithNotes(GDMTree tree, GEDCOMFormat format, GDMPointerWithNotes ptr)
        {
            // TODO: checkit!
            GDMRecord val = ptr.Value;

            if (!string.IsNullOrEmpty(ptr.XRef) && val == null)
            {
                ptr.Value = null;
            }

            int num = ptr.Notes.Count;

            for (int i = 0; i < num; i++)
            {
                GDMNotes note = ptr.Notes[i];
                if (!note.IsPointer)
                {
                    TransformNote(tree, note);
                }
            }
        }