Beispiel #1
0
        private static void HandleInventoryUpdate(ReceivedChat message)
        {
            _inventory = new BindingListEx <Item>();

            string[] lines = message.Message.Split('\n');
            foreach (string line in lines)
            {
                if (line.Length > 0)
                {
                    _inventory.Add(new Item(line));
                }
            }
            //                bsInventory.DataSource = inventory;
        }
Beispiel #2
0
 private static void HandleEquipmentUpdate(ReceivedChat message)
 {
     _equipment = new BindingListEx <Item>();
     //clear inventory and re-pop
     string[] lines = message.Message.Split('\n');
     foreach (string line in lines)
     {
         if (line.Length > 0)
         {
             _equipment.Add(new Item(line));
         }
     }
     //bsEquipment.DataSource = inventory;
 }