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