Esempio n. 1
0
        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);
            }
        }
Esempio n. 2
0
        public void RemoveById(int id)
        {
            int index = Rows.BinarySearch_R(GetSearchObject(id));

            if (Rows[index].ID_Player == id)
            {
                Rows.RemoveAt(index);
            }
        }