Example #1
0
        private bool ProcessRecordNoteAdd(bool redo)
        {
            IGEDCOMStructWithLists swl     = fObj as IGEDCOMStructWithLists;
            GDMNoteRecord          noteRec = fNewVal as GDMNoteRecord;

            bool result = (swl != null && noteRec != null);

            if (result)
            {
                if (redo)
                {
                    GDMNotes notes = swl.AddNote(noteRec);
                    fOldVal = notes;
                }
                else
                {
                    GDMNotes notes = fOldVal as GDMNotes;
                    swl.Notes.Delete(notes);
                }
            }
            return(result);
        }