public void AddEntry(int id, BDM_Entry entry) { for (int i = 0; i < BDM_Entries.Count; i++) { if (BDM_Entries[i].I_00 == id) { BDM_Entries[i] = entry; return; } } BDM_Entries.Add(entry); }
public int AddEntry(BDM_Entry entry) { entry.ID = NextID(0); BDM_Entries.Add(entry); return(entry.ID); }