Example #1
0
        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);
        }
Example #2
0
        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);
        }
Example #3
0
 public bool RemoveGroupItem(string item)
 {
     CCBDirty.kDirty = true;
     return(m_groupItems.RemoveItem(item));
 }