public void AddPotentialStoreItem(CCBPotentialStoreItem item) { //Avoid duplicate items by removing it first if there. CCBPotentialStoreItem oldItem = FindItem(item.Item); if (null != oldItem) { m_items.RemoveItem(oldItem); } m_items.Add(item); }
public bool OnDeleteBagItems(CCBBag targetBag, string[] bagItems) { CCBTreeViewBag bagNode = FindBagNodeFromBag(targetBag); if (null != bagNode) { CCBBag bag = bagNode.Bag; bagNode.StartBulkEdit(); foreach (string item in bagItems) { bag.RemoveItem(item); bagNode.Remove(item); } bagNode.EndBulkEdit(); ResetEntitiesList(); return(true); } return(false); }
public bool RemoveGroupItem(string item) { CCBDirty.kDirty = true; return(m_groupItems.RemoveItem(item)); }