예제 #1
0
    public void SetDetailData(string theFashionDataID, FashionPreviewCell.FashionPreviewCellType type)
    {
        if (!string.IsNullOrEmpty(theFashionDataID) && DataReader <ShiZhuangXiTong> .Contains(theFashionDataID))
        {
            ShiZhuangXiTong shiZhuangXiTong = DataReader <ShiZhuangXiTong> .Get(theFashionDataID);

            if (DataReader <Items> .Contains(shiZhuangXiTong.itemsID))
            {
                Items items = DataReader <Items> .Get(shiZhuangXiTong.itemsID);

                this.ShowTitle(true);
                this.ShowTimeLimitMark(shiZhuangXiTong.quality == 1);
                this.SetAttrText(this.IsTypeShowAttr(type), (shiZhuangXiTong.gainProperty != 0) ? AttrUtility.GetAllStandardAddDesc(shiZhuangXiTong.gainProperty) : null);
                this.SetTitleName((shiZhuangXiTong.title != 0) ? (GameDataUtils.GetChineseContent(shiZhuangXiTong.title, false) + "\n" + GameDataUtils.GetChineseContent(items.name, false)) : GameDataUtils.GetChineseContent(items.name, false));
                this.SetConditionText(true, GameDataUtils.GetChineseContent(items.describeId2, false));
            }
            else
            {
                this.ShowTitle(false);
                this.SetConditionText(false, string.Empty);
                this.SetAttrText(false, null);
            }
        }
        else
        {
            this.ShowTitle(false);
            this.SetConditionText(false, string.Empty);
            this.SetAttrText(false, null);
        }
    }