Beispiel #1
0
 private static void AddPlayersToBag(CCBBag bag, int cPlayers)
 {
     for (int ix = 0; ix < cPlayers; ix++)
     {
         bag.AddItem(string.Format("Player {0}", ix + 1));
     }
 }
Beispiel #2
0
        public void OnCopyBagItems(CCBBag targetBag, string[] bagItems)
        {
            CCBTreeViewBag bagNode = FindBagNodeFromBag(targetBag);

            if (null != bagNode)
            {
                CCBBag bag = bagNode.Bag;

                bagNode.StartBulkEdit();
                foreach (string item in bagItems)
                {
                    CCBBagItem bagItem = bag.AddItem(item);
                    bagNode.Items.Add(new CCBTreeViewItem(bagItem));
                }
                bagNode.EndBulkEdit();
            }
        }
Beispiel #3
0
 public void AddGroupItem(string item)
 {
     CCBDirty.kDirty = true;
     m_groupItems.AddItem(item);
 }