private void AddFashionData(FashionType type, PShopItem item) { if (!m_FashionShop.ContainsKey(type)) { m_FashionShop.Add(type, new List <PShopItem>()); } m_FashionShop[type].Add(item); }
private void OnCheckBoxValueChange(bool arg0) { if (arg0) { SetSelectDefault(); FashionType type = FashionType.None; for (int i = 0; i < toggles.Count; i++) { if (toggles[i].isOn) { type = (FashionType)(i + 1); break; } } moduleShop.curFashionType = type; if (type == FashionType.Cloth) { Util.SetText(m_titleTxt, 208, 0); } else if (type == FashionType.HeadDress) { Util.SetText(m_titleTxt, 208, 2); } else if (type == FashionType.HairDress) { Util.SetText(m_titleTxt, 208, 9); } else if (type == FashionType.FaceDress) { Util.SetText(m_titleTxt, 208, 10); } else if (type == FashionType.NeckDress) { Util.SetText(m_titleTxt, 208, 11); } else if (type == FashionType.Limited) { Util.SetText(m_titleTxt, 208, 3); } if (moduleShop.fashionShop.ContainsKey(type)) { itemlist = moduleShop.fashionShop[type]; dataSource.SetItems(itemlist); } else { dataSource.SetItems(null); } view.progress = 0; } }