public void Add(FriendRow item) { int index = Rows.BinarySearch_R(GetSearchObject(item.ID_Player)); if (Rows[index].ID_Player != item.ID_Player) { base.Insert(item); } }
public void RemoveById(int id) { int index = Rows.BinarySearch_R(GetSearchObject(id)); if (Rows[index].ID_Player == id) { Rows.RemoveAt(index); } }