Пример #1
0
    private void SetScrollView(ShopData.TypeEnum type)
    {
        ItemData.RootObject   data;
        List <int>            idList  = ShopData.GetIDList(type);
        Dictionary <int, int> itemDic = new Dictionary <int, int>(); //id, price

        for (int i = 0; i < idList.Count; i++)
        {
            data = ItemData.GetData(idList[i]);
            itemDic.Add(data.ID, data.Price);
        }
        ScrollView.SetData(new ArrayList(itemDic));
    }