public void RemoveRepository(GEDCOMRepositoryRecord repRec) { if (repRec == null) { throw new ArgumentNullException("repRec"); } foreach (GEDCOMRepositoryCitation repCit in fRepositoryCitations) { GEDCOMRepositoryRecord rep = repCit.Value as GEDCOMRepositoryRecord; if (rep == repRec) { fRepositoryCitations.Delete(repCit); break; } } }
/*public void Delete(int index) * { * XRefIndex_DeleteRecord(fRecords[index]); * fRecords.DeleteAt(index); * }*/ public void DeleteRecord(GEDCOMRecord record) { XRefIndex_DeleteRecord(record); fRecords.Delete(record); }