/// <summary> /// Clean child record. /// </summary> private void CleanChildRecord(TPC.ContactsRecord record) { if (record.GetChildRecordCount(Contact.Name) > 0) { var name = record.GetChildRecord(Contact.Name, 0); record.RemoveChildRecord(Contact.Name, name); } if (record.GetChildRecordCount(Contact.Number) > 0) { var number = record.GetChildRecord(Contact.Number, 0); record.RemoveChildRecord(Contact.Number, number); } if (record.GetChildRecordCount(Contact.Email) > 0) { var email = record.GetChildRecord(Contact.Email, 0); record.RemoveChildRecord(Contact.Email, email); } if (record.GetChildRecordCount(Contact.URL) > 0) { var url = record.GetChildRecord(Contact.URL, 0); record.RemoveChildRecord(Contact.URL, url); } if (record.GetChildRecordCount(Contact.Company) > 0) { var company = record.GetChildRecord(Contact.Company, 0); record.RemoveChildRecord(Contact.Company, company); } if (record.GetChildRecordCount(Contact.Event) > 0) { var ievent = record.GetChildRecord(Contact.Event, 0); record.RemoveChildRecord(Contact.Event, ievent); } if (record.GetChildRecordCount(Contact.Note) > 0) { var note = record.GetChildRecord(Contact.Note, 0); record.RemoveChildRecord(Contact.Note, note); } }