private void ShowExtendChipDialog()
    {
        CMD_ChangePOP cmd_ChangePOP = CMD_ChangePOP.CreateExtendChipPOP(this.extraPatchCount, this.consumeItemCount, new Action(this.OnPushedExtendConfirmYesButton));

        cmd_ChangePOP.SetSpriteIcon("extra_slot_01");
        this.cmdChangePop = cmd_ChangePOP;
    }
    private void OnPushedButton(ExchangeItem exchangeItem)
    {
        int num = 0;

        foreach (string a in this.itemDictionary.Keys)
        {
            string assetCategoryId = exchangeItem.exchangeItemData.assetCategoryId;
            string assetValue      = exchangeItem.exchangeItemData.assetValue;
            string text            = assetCategoryId + assetValue;
            if (this.itemDictionary.ContainsKey(text) && a == text && this.itemDictionary[text] == assetValue)
            {
                break;
            }
            num++;
        }
        string text2 = this.exchangeConsumeItemName[num];

        this.consumeNum = (int.Parse(exchangeItem.exchangeConsumeNum) * exchangeItem.numCounter).ToString();
        string text3 = (this.exchangeConsumeItemInfo == null) ? string.Empty : this.exchangeConsumeItemInfo.unitName;

        MasterDataMng.AssetCategory assetCategory = (MasterDataMng.AssetCategory) int.Parse(exchangeItem.exchangeItemData.assetCategoryId);
        CMD_ClearingHouse.IconType  iconType      = CMD_ClearingHouse.IconType.NON;
        switch (assetCategory)
        {
        case MasterDataMng.AssetCategory.MONSTER:
            text3    = StringMaster.GetString("ConsumeUnitMonster");
            iconType = CMD_ClearingHouse.IconType.NON;
            break;

        case MasterDataMng.AssetCategory.DIGI_STONE:
            iconType = CMD_ClearingHouse.IconType.SPRITE;
            break;

        case MasterDataMng.AssetCategory.LINK_POINT:
            text3    = string.Empty;
            iconType = CMD_ClearingHouse.IconType.SPRITE;
            break;

        case MasterDataMng.AssetCategory.TIP:
            text3    = string.Empty;
            iconType = CMD_ClearingHouse.IconType.SPRITE;
            break;

        case MasterDataMng.AssetCategory.ITEM:
            iconType = CMD_ClearingHouse.IconType.TEXTURE;
            break;

        case MasterDataMng.AssetCategory.GATHA_TICKET:
            text3    = StringMaster.GetString("ConsumeUnitTicket");
            iconType = CMD_ClearingHouse.IconType.NON;
            break;

        case MasterDataMng.AssetCategory.MEAT:
            iconType = CMD_ClearingHouse.IconType.SPRITE;
            break;

        case MasterDataMng.AssetCategory.SOUL:
            text3    = StringMaster.GetString("ConsumeUnitPlugin");
            iconType = CMD_ClearingHouse.IconType.TEXTURE;
            break;

        case MasterDataMng.AssetCategory.DUNGEON_TICKET:
            text3    = StringMaster.GetString("ConsumeUnitTicket");
            iconType = CMD_ClearingHouse.IconType.TEXTURE;
            break;
        }
        string exchangeDetailName = exchangeItem.exchangeDetailName;
        string info = string.Format(StringMaster.GetString("ExchangeConfirmInfo"), new object[]
        {
            text2,
            this.consumeNum,
            text3,
            exchangeDetailName
        });
        CMD_ChangePOP cd = GUIMain.ShowCommonDialog(null, "CMD_ChangePOP", null) as CMD_ChangePOP;

        cd.Title = StringMaster.GetString("ExchangeConfirmTitle");
        cd.Info  = info;
        cd.SetPoint(exchangeItem.exchangeItemData.count, int.Parse(this.consumeNum));
        if (iconType == CMD_ClearingHouse.IconType.SPRITE)
        {
            cd.SetSpriteIcon(this.exchangeItemPathList[num]);
        }
        else if (iconType == CMD_ClearingHouse.IconType.TEXTURE)
        {
            cd.SetTextureIcon(this.exchangeItemPathList[num]);
        }
        cd.OnPushedYesAction = delegate()
        {
            cd.ClosePanel(true);
            this.AccessExchangeLogic(exchangeItem);
        };
    }