public static long GetRegisterCost(NkSoldierInfo SoldierInfo, long lSellCost, AuctionDefine.ePAYTYPE ePayType)
    {
        long result = 0L;

        if (SoldierInfo == null)
        {
            return(result);
        }
        int   num  = (int)AuctionMainDlg.GetAuctionSellPrice();
        long  num2 = (long)((int)SoldierInfo.GetLevel() * num);
        float auctionSellPriceRate = AuctionMainDlg.GetAuctionSellPriceRate();
        long  num3 = (long)((float)lSellCost * auctionSellPriceRate);

        if (ePayType == AuctionDefine.ePAYTYPE.ePAYTYPE_HEARTS)
        {
            int heartsValue = AuctionMainDlg.GetHeartsValue();
            if (0 < heartsValue)
            {
                num3 *= (long)heartsValue;
            }
        }
        result = num2;
        if (num2 < num3)
        {
            result = num3;
        }
        return(result);
    }
Esempio n. 2
0
    public void ClickDetailInfo(IUIObject obj)
    {
        UIListItemContainer selectItem = this.m_nlbItemList.GetSelectItem();

        if (null == selectItem)
        {
            return;
        }
        if (selectItem.Data == null)
        {
            return;
        }
        ITEM iTEM = selectItem.data as ITEM;

        if (iTEM != null)
        {
            AuctionMainDlg.ShowItemDetailInfo(iTEM, (G_ID)base.WindowID);
        }
        else
        {
            NkSoldierInfo nkSoldierInfo = selectItem.data as NkSoldierInfo;
            if (nkSoldierInfo != null)
            {
                AuctionMainDlg.ShowSolDetailInfo(nkSoldierInfo, this);
            }
        }
    }
    public static long GetRegisterCost(ITEM Item, long lSellCost, AuctionDefine.ePAYTYPE ePayType)
    {
        long result = 0L;

        if (Item == null)
        {
            return(result);
        }
        ITEMINFO itemInfo = NrTSingleton <ItemManager> .Instance.GetItemInfo(Item.m_nItemUnique);

        if (itemInfo != null)
        {
            int   num  = (int)AuctionMainDlg.GetAuctionSellPrice();
            long  num2 = (long)(itemInfo.m_nUseMinLevel * num);
            float auctionSellPriceRate = AuctionMainDlg.GetAuctionSellPriceRate();
            long  num3 = (long)((float)lSellCost * auctionSellPriceRate);
            if (ePayType == AuctionDefine.ePAYTYPE.ePAYTYPE_HEARTS)
            {
                int heartsValue = AuctionMainDlg.GetHeartsValue();
                if (0 < heartsValue)
                {
                    num3 *= (long)heartsValue;
                }
            }
            result = num2;
            if (num2 < num3)
            {
                result = num3;
            }
        }
        return(result);
    }
    public void OnInputMyCost(InputNumberDlg a_cForm, object a_oObject)
    {
        long num = a_cForm.GetNum();

        if (AuctionMainDlg.GetCostMax(this.m_ePayType) < num)
        {
            num = AuctionMainDlg.GetCostMax(this.m_ePayType);
        }
        MsgBoxUI msgBoxUI = NrTSingleton <FormsManager> .Instance.LoadForm(G_ID.MSGBOX_DLG) as MsgBoxUI;

        if (msgBoxUI == null)
        {
            return;
        }
        string empty     = string.Empty;
        string textColor = NrTSingleton <CTextParser> .Instance.GetTextColor("1002");

        NrTSingleton <CTextParser> .Instance.ReplaceParam(ref empty, new object[]
        {
            NrTSingleton <NrTextMgr> .Instance.GetTextFromMessageBox("258"),
            "targetname",
            this.m_lbItemName.GetText() + textColor,
            "count",
            num
        });

        msgBoxUI.SetMsg(new YesDelegate(this.MessageBoxMyCost), num, NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("1104"), empty, eMsgType.MB_OK_CANCEL, 2);
        msgBoxUI.Show();
    }
Esempio n. 5
0
    public void ClickSearch(IUIObject obj)
    {
        if (string.Empty != this.m_tfSolName.Text)
        {
        }
        this.m_SearchOption.m_strSolName = this.m_tfSolName.Text;
        if (this.m_cbHearts.IsChecked() && this.m_cbMoney.IsChecked())
        {
            this.m_SearchOption.m_ePayType = AuctionDefine.ePAYTYPE.ePAYTYPE_ALL;
        }
        else if (this.m_cbHearts.IsChecked())
        {
            this.m_SearchOption.m_ePayType = AuctionDefine.ePAYTYPE.ePAYTYPE_HEARTS;
        }
        else if (this.m_cbMoney.IsChecked())
        {
            this.m_SearchOption.m_ePayType = AuctionDefine.ePAYTYPE.ePAYTYPE_GOLD;
        }
        AuctionMainDlg auctionMainDlg = NrTSingleton <FormsManager> .Instance.GetForm(G_ID.AUCTION_MAIN_DLG) as AuctionMainDlg;

        if (auctionMainDlg != null)
        {
            auctionMainDlg.SetSearchOption(this.m_SearchOption);
        }
        AuctionMainDlg.Send_PurchaseList(0, this.m_SearchOption, AuctionDefine.eSORT_TYPE.eSORT_TYPE_NONE, true);
        NrTSingleton <FormsManager> .Instance.CloseForm(G_ID.AUCTION_SEARCH_DLG);
    }
Esempio n. 6
0
    public void ClickDirectCost(IUIObject obj)
    {
        if (this.m_SearchOption.m_ePayType == AuctionDefine.ePAYTYPE.ePAYTYPE_GOLD)
        {
            InputNumberDlg inputNumberDlg = NrTSingleton <FormsManager> .Instance.LoadForm(G_ID.DLG_INPUTNUMBER) as InputNumberDlg;

            inputNumberDlg.SetCallback(new Action <InputNumberDlg, object>(this.OnInputDirectCostMoney), null, new Action <InputNumberDlg, object>(this.OnCloseInputNumber), null);
            inputNumberDlg.SetMinMax(1L, AuctionMainDlg.GetCostMax(this.m_SearchOption.m_ePayType));
            inputNumberDlg.SetNum(this.m_SearchOption.m_lCostMoney);
            inputNumberDlg.SetInputNum(0L);
        }
        else if (this.m_SearchOption.m_ePayType == AuctionDefine.ePAYTYPE.ePAYTYPE_HEARTS)
        {
            InputNumberDlg inputNumberDlg2 = NrTSingleton <FormsManager> .Instance.LoadForm(G_ID.DLG_INPUTNUMBER) as InputNumberDlg;

            inputNumberDlg2.SetCallback(new Action <InputNumberDlg, object>(this.OnInputDirectCostHearts), null, new Action <InputNumberDlg, object>(this.OnCloseInputNumber), null);
            inputNumberDlg2.SetMinMax(1L, AuctionMainDlg.GetCostMax(this.m_SearchOption.m_ePayType));
            inputNumberDlg2.SetNum(this.m_SearchOption.m_lDirectCostMoney);
            inputNumberDlg2.SetInputNum(0L);
        }
        else if (this.m_SearchOption.m_ePayType == AuctionDefine.ePAYTYPE.ePAYTYPE_ALL)
        {
            Main_UI_SystemMessage.ADDMessage(NrTSingleton <NrTextMgr> .Instance.GetTextFromNotify("307"), SYSTEM_MESSAGE_TYPE.IMPORTANT_MESSAGE);
            return;
        }
    }
    public void ClickOK(IUIObject obj)
    {
        if (NrTSingleton <NkCharManager> .Instance.GetChar(1).GetPersonID() == this.m_lPersonID)
        {
            Main_UI_SystemMessage.ADDMessage(NrTSingleton <NrTextMgr> .Instance.GetTextFromNotify("300"), SYSTEM_MESSAGE_TYPE.NAGATIVE_MESSAGE);
            return;
        }
        if (0L < this.m_lCostMoney)
        {
            if (this.m_lTenderCost < this.m_lCostMoney)
            {
                return;
            }
            if (this.m_lTenderCost > NrTSingleton <NkCharManager> .Instance.m_kMyCharInfo.m_Money)
            {
                Main_UI_SystemMessage.ADDMessage(NrTSingleton <NrTextMgr> .Instance.GetTextFromNotify("89"), SYSTEM_MESSAGE_TYPE.NAGATIVE_MESSAGE);
                return;
            }
        }
        if (0 < this.m_iCostHearts)
        {
            if (this.m_lTenderCost < (long)this.m_iCostHearts)
            {
                return;
            }
            if (this.m_lTenderCost > (long)NkUserInventory.GetInstance().Get_First_ItemCnt(70000))
            {
                Main_UI_SystemMessage.ADDMessage(NrTSingleton <NrTextMgr> .Instance.GetTextFromNotify("273"), SYSTEM_MESSAGE_TYPE.NAGATIVE_MESSAGE);
                return;
            }
        }
        if (0L >= this.m_lAuctionID)
        {
            return;
        }
        GS_AUCTION_TENDER_REQ gS_AUCTION_TENDER_REQ = new GS_AUCTION_TENDER_REQ();

        gS_AUCTION_TENDER_REQ.i64AuctionID = this.m_lAuctionID;
        if (this.m_ePayType == AuctionDefine.ePAYTYPE.ePAYTYPE_GOLD)
        {
            gS_AUCTION_TENDER_REQ.i64CostMoney = this.m_lTenderCost;
        }
        else if (this.m_ePayType == AuctionDefine.ePAYTYPE.ePAYTYPE_HEARTS)
        {
            gS_AUCTION_TENDER_REQ.i32CostHearts = (int)this.m_lTenderCost;
        }
        gS_AUCTION_TENDER_REQ.i64CurCostMoney        = this.m_lCurCostMoney;
        gS_AUCTION_TENDER_REQ.i64CurDirectCostMoney  = this.m_lCurDirectCostMoney;
        gS_AUCTION_TENDER_REQ.i32CurCostHearts       = this.m_iCurCostHearts;
        gS_AUCTION_TENDER_REQ.i32CurDirectCostHearts = this.m_iCurDirectCostHearts;
        SendPacket.GetInstance().SendObject(eGAME_PACKET_ID.GS_AUCTION_TENDER_REQ, gS_AUCTION_TENDER_REQ);
        AuctionMainDlg auctionMainDlg = NrTSingleton <FormsManager> .Instance.LoadForm(G_ID.AUCTION_MAIN_DLG) as AuctionMainDlg;

        if (auctionMainDlg != null)
        {
            auctionMainDlg.SetEnableControl(false);
        }
        NrTSingleton <FormsManager> .Instance.CloseForm(G_ID.AUCTION_TENDERCHECK_DLG);
    }
 public void ClickDetailInfo(IUIObject obj)
 {
     if (this.m_SelectItem != null)
     {
         AuctionMainDlg.ShowItemDetailInfo(this.m_SelectItem, (G_ID)base.WindowID);
     }
     else if (this.m_SelectSoldierInfo != null)
     {
         AuctionMainDlg.ShowSolDetailInfo(this.m_SelectSoldierInfo, this);
     }
 }
 public void ClickDetailInfo(IUIObject obj)
 {
     if (this.m_RegisterItem != null)
     {
         AuctionMainDlg.ShowItemDetailInfo(this.m_RegisterItem.Item, (G_ID)base.WindowID);
     }
     else if (this.m_RegisterSol != null)
     {
         AuctionMainDlg.ShowSolDetailInfo(this.m_RegisterSol, this);
     }
 }
    public long GetTenderCostMin(long lCurTenderCost)
    {
        double num  = (double)AuctionMainDlg.GetAuctionTenderRate();
        long   num2 = (long)((double)lCurTenderCost * num);

        if (0L >= num2)
        {
            num2 = 1L;
        }
        return(lCurTenderCost + num2);
    }
    public void ClickMyCost(IUIObject obj)
    {
        InputNumberDlg inputNumberDlg = NrTSingleton <FormsManager> .Instance.LoadForm(G_ID.DLG_INPUTNUMBER) as InputNumberDlg;

        inputNumberDlg.SetCallback(new Action <InputNumberDlg, object>(this.OnInputMyCost), null, new Action <InputNumberDlg, object>(this.OnCloseInputNumber), null);
        long costMax       = AuctionMainDlg.GetCostMax(this.m_ePayType);
        long tenderCostMin = this.GetTenderCostMin(this.m_lCost);

        inputNumberDlg.SetMinMax(tenderCostMin, costMax);
        inputNumberDlg.SetNum(this.m_lTenderCost);
        inputNumberDlg.SetInputNum(0L);
    }
Esempio n. 12
0
    public void SelectItem()
    {
        UIListItemContainer selectItem = this.m_nlbItemList.GetSelectItem();

        if (null == selectItem)
        {
            return;
        }
        if (selectItem.Data == null)
        {
            return;
        }
        if (this.m_eAuctionRegisterType == AuctionDefine.eAUCTIONREGISTERTYPE.eAUCTIONREGISTERTYPE_ITEM)
        {
            ITEM iTEM = selectItem.data as ITEM;
            if (iTEM.IsLock())
            {
                Main_UI_SystemMessage.ADDMessage(NrTSingleton <NrTextMgr> .Instance.GetTextFromNotify("726"), SYSTEM_MESSAGE_TYPE.NORMAL_MESSAGE_GREEN);
                return;
            }
            AuctionMainDlg auctionMainDlg = NrTSingleton <FormsManager> .Instance.GetForm(G_ID.AUCTION_MAIN_DLG) as AuctionMainDlg;

            if (auctionMainDlg != null)
            {
                auctionMainDlg.SetSelectItem(iTEM);
            }
        }
        else if (this.m_eAuctionRegisterType == AuctionDefine.eAUCTIONREGISTERTYPE.eAUCTIONREGISTERTYPE_SOL)
        {
            NkSoldierInfo nkSoldierInfo = selectItem.data as NkSoldierInfo;
            if (nkSoldierInfo.IsAtbCommonFlag(1L))
            {
                Main_UI_SystemMessage.ADDMessage(NrTSingleton <NrTextMgr> .Instance.GetTextFromNotify("879"), SYSTEM_MESSAGE_TYPE.NORMAL_MESSAGE_GREEN);
            }
            else
            {
                AuctionMainDlg auctionMainDlg2 = NrTSingleton <FormsManager> .Instance.GetForm(G_ID.AUCTION_MAIN_DLG) as AuctionMainDlg;

                if (auctionMainDlg2 != null)
                {
                    auctionMainDlg2.SetSelectSol(nkSoldierInfo);
                }
            }
        }
        NrTSingleton <FormsManager> .Instance.CloseForm(G_ID.AUCTION_ITEMSELECT_DLG);
    }
Esempio n. 13
0
    public void ClickPayType()
    {
        if (null == this.m_cbHearts || null == this.m_cbMoney)
        {
            return;
        }
        if (this.m_cbHearts.IsChecked())
        {
            this.m_SearchOption.m_ePayType         = AuctionDefine.ePAYTYPE.ePAYTYPE_HEARTS;
            this.m_SearchOption.m_lCostMoney       = 0L;
            this.m_SearchOption.m_lDirectCostMoney = 0L;
            this.m_lbCost.SetText(ANNUALIZED.Convert(this.m_SearchOption.m_iCostHearts));
            this.m_lbDirectCost.SetText(ANNUALIZED.Convert(this.m_SearchOption.m_iCostDirectHearts));
            AuctionMainDlg.SetChangePayTexture(this.m_dtCostIcon1, this.m_dtCostIcon2, AuctionDefine.ePAYTYPE.ePAYTYPE_HEARTS);
        }
        else if (this.m_cbMoney.IsChecked())
        {
            this.m_SearchOption.m_ePayType          = AuctionDefine.ePAYTYPE.ePAYTYPE_GOLD;
            this.m_SearchOption.m_iCostHearts       = 0;
            this.m_SearchOption.m_iCostDirectHearts = 0;
            this.m_lbCost.SetText(ANNUALIZED.Convert(this.m_SearchOption.m_lCostMoney));
            this.m_lbDirectCost.SetText(ANNUALIZED.Convert(this.m_SearchOption.m_lDirectCostMoney));
            AuctionMainDlg.SetChangePayTexture(this.m_dtCostIcon1, this.m_dtCostIcon2, AuctionDefine.ePAYTYPE.ePAYTYPE_GOLD);
        }
        bool flag = false;

        if (this.m_cbHearts.IsChecked() && this.m_cbMoney.IsChecked())
        {
            flag = true;
        }
        if (!this.m_cbHearts.IsChecked() && !this.m_cbMoney.IsChecked())
        {
            flag = true;
        }
        if (flag)
        {
            this.m_SearchOption.m_ePayType          = AuctionDefine.ePAYTYPE.ePAYTYPE_ALL;
            this.m_SearchOption.m_lCostMoney        = 0L;
            this.m_SearchOption.m_lDirectCostMoney  = 0L;
            this.m_SearchOption.m_iCostHearts       = 0;
            this.m_SearchOption.m_iCostDirectHearts = 0;
            this.m_lbCost.SetText(ANNUALIZED.Convert(this.m_SearchOption.m_lCostMoney));
            this.m_lbDirectCost.SetText(ANNUALIZED.Convert(this.m_SearchOption.m_lDirectCostMoney));
        }
    }
    public void ClickOK(IUIObject obj)
    {
        if (!this.IsDirectPurchase())
        {
            return;
        }
        GS_AUCTION_DIRECTPURCHASE_REQ gS_AUCTION_DIRECTPURCHASE_REQ = new GS_AUCTION_DIRECTPURCHASE_REQ();

        gS_AUCTION_DIRECTPURCHASE_REQ.i64AuctionID        = this.m_lAuctionID;
        gS_AUCTION_DIRECTPURCHASE_REQ.i64DirectCostMoney  = this.m_lDirectCostMoney;
        gS_AUCTION_DIRECTPURCHASE_REQ.i32DirectCostHearts = this.m_iDirectCostHearts;
        SendPacket.GetInstance().SendObject(eGAME_PACKET_ID.GS_AUCTION_DIRECTPURCHASE_REQ, gS_AUCTION_DIRECTPURCHASE_REQ);
        AuctionMainDlg auctionMainDlg = NrTSingleton <FormsManager> .Instance.LoadForm(G_ID.AUCTION_MAIN_DLG) as AuctionMainDlg;

        if (auctionMainDlg != null)
        {
            auctionMainDlg.SetEnableControl(false);
        }
        NrTSingleton <FormsManager> .Instance.CloseForm(G_ID.AUCTION_PURCHASECHECK_DLG);
    }
Esempio n. 15
0
    public void SetSearchOption(AuctionSearchOption SearchOption)
    {
        this.m_SearchOption.Set(SearchOption);
        this.m_lbUseMinLevel.SetText(this.m_SearchOption.m_iUseMinLevel.ToString());
        this.m_lbUseMaxLevel.SetText(this.m_SearchOption.m_iUseMaxLevel.ToString());
        this.m_lbItemSkillLevel.SetText(this.m_SearchOption.m_iItemSkillLevel.ToString());
        this.m_lbItemTradeCount.SetText(this.m_SearchOption.m_iItemTradeCount.ToString());
        this.m_lbSolLevel.SetText(this.m_SearchOption.m_iSolLevel.ToString());
        this.m_tfSolName.SetText(this.m_SearchOption.m_strSolName);
        this.m_lbSolTradeCount.SetText(this.m_SearchOption.m_iSolTradeCount.ToString());
        if (this.m_SearchOption.m_ePayType == AuctionDefine.ePAYTYPE.ePAYTYPE_GOLD)
        {
            this.m_lbCost.SetText(ANNUALIZED.Convert(this.m_SearchOption.m_lCostMoney));
            this.m_lbDirectCost.SetText(ANNUALIZED.Convert(this.m_SearchOption.m_lDirectCostMoney));
            this.m_cbMoney.SetCheckState(1);
            this.m_cbHearts.SetCheckState(0);
        }
        else if (this.m_SearchOption.m_ePayType == AuctionDefine.ePAYTYPE.ePAYTYPE_HEARTS)
        {
            this.m_lbCost.SetText(ANNUALIZED.Convert(this.m_SearchOption.m_iCostHearts));
            this.m_lbDirectCost.SetText(ANNUALIZED.Convert(this.m_SearchOption.m_iCostDirectHearts));
            this.m_cbMoney.SetCheckState(0);
            this.m_cbHearts.SetCheckState(1);
        }
        else
        {
            long num  = 0L;
            long num2 = 0L;
            if (AuctionMainDlg.IsPayTypeMoney())
            {
                this.m_SearchOption.m_ePayType = AuctionDefine.ePAYTYPE.ePAYTYPE_GOLD;
                num  = this.m_SearchOption.m_lCostMoney;
                num2 = this.m_SearchOption.m_lDirectCostMoney;
            }
            else if (AuctionMainDlg.IsPayTypeHearts())
            {
                this.m_SearchOption.m_ePayType = AuctionDefine.ePAYTYPE.ePAYTYPE_HEARTS;
                num  = (long)this.m_SearchOption.m_iCostHearts;
                num2 = (long)this.m_SearchOption.m_iCostDirectHearts;
            }
            this.m_lbCost.SetText(ANNUALIZED.Convert(num));
            this.m_lbDirectCost.SetText(ANNUALIZED.Convert(num2));
            this.m_cbMoney.SetCheckState(1);
            this.m_cbHearts.SetCheckState(1);
        }
        int num3 = 0;

        if (eITEM_TYPE.ITEMTYPE_NONE < this.m_SearchOption.m_eItemType)
        {
            num3 = (int)this.m_SearchOption.m_eItemType;
            this.m_dlItemType.SetIndex(num3);
        }
        ITEMTYPE_INFO itemTypeInfo = null;

        if (0 < num3)
        {
            itemTypeInfo = NrTSingleton <NrBaseTableManager> .Instance.GetItemTypeInfo(num3.ToString());
        }
        this.SetItemOption(itemTypeInfo, this.m_SearchOption.m_iItemSkillUnique);
        for (int i = 0; i < this.m_SeasonData.Count; i++)
        {
            if (this.m_SeasonData[i] == this.m_SearchOption.m_bySolSeason)
            {
                this.m_dlSolSeason.SetIndex(i);
                break;
            }
        }
        this.SelectTab();
    }
Esempio n. 16
0
    public override void SetComponent()
    {
        this.m_strText = NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("1368");

        string text = string.Empty;

        this.m_dtCostIcon1 = (base.GetControl("Icn_Money01") as DrawTexture);
        this.m_dtCostIcon2 = (base.GetControl("Icn_Money02") as DrawTexture);
        this.m_tbTab       = (base.GetControl("ToolBar") as Toolbar);
        this.m_tbTab.Control_Tab[0].Text = NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("451");

        this.m_tbTab.Control_Tab[1].Text = NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("1490");

        UIPanelTab expr_AE = this.m_tbTab.Control_Tab[0];

        expr_AE.ButtonClick = (EZValueChangedDelegate)Delegate.Combine(expr_AE.ButtonClick, new EZValueChangedDelegate(this.OnClickTab));
        UIPanelTab expr_DC = this.m_tbTab.Control_Tab[1];

        expr_DC.ButtonClick = (EZValueChangedDelegate)Delegate.Combine(expr_DC.ButtonClick, new EZValueChangedDelegate(this.OnClickTab));
        this.m_btCost       = (base.GetControl("Button_AuctionCost") as Button);
        this.m_btCost.AddValueChangedDelegate(new EZValueChangedDelegate(this.ClickCost));
        this.m_lbCost       = (base.GetControl("Label_AuctionCost") as Label);
        this.m_btDirectCost = (base.GetControl("Button_DirectCost") as Button);
        this.m_btDirectCost.AddValueChangedDelegate(new EZValueChangedDelegate(this.ClickDirectCost));
        this.m_lbDirectCost = (base.GetControl("Label_DirectCost") as Label);
        this.m_cbHearts     = (base.GetControl("Toggle_MoneyKind01") as CheckBox);
        this.m_cbHearts.SetValueChangedDelegate(new EZValueChangedDelegate(this.ClickPayTypeHearts));
        this.m_cbHearts.SetCheckState(1);
        this.m_cbMoney = (base.GetControl("Toggle_MoneyKind02") as CheckBox);
        this.m_cbMoney.SetValueChangedDelegate(new EZValueChangedDelegate(this.ClickPayTypeMoney));
        this.m_cbMoney.SetCheckState(1);
        this.m_btSearch = (base.GetControl("Button_OK") as Button);
        this.m_btSearch.AddValueChangedDelegate(new EZValueChangedDelegate(this.ClickSearch));
        this.m_dtCostIconHearts = (base.GetControl("Icon_MoneyKindHearts") as DrawTexture);
        this.m_dtCostIconMoney  = (base.GetControl("Icon_MoneyKind_Gold") as DrawTexture);
        this.m_lbCostKind       = (base.GetControl("Label_MoneyKind") as Label);
        this.m_dlItemType       = (base.GetControl("DropDownList_Base01") as DropDownList);
        this.m_dlItemType.AddItem(this.m_strText, eITEM_TYPE.ITEMTYPE_NONE);
        this.m_ItemTypeInfo.Clear();
        for (int i = 1; i <= 20; i++)
        {
            ITEMTYPE_INFO itemTypeInfo = NrTSingleton <NrBaseTableManager> .Instance.GetItemTypeInfo(i.ToString());

            if (itemTypeInfo != null)
            {
                if (0 < itemTypeInfo.AuctionSearch)
                {
                    this.m_ItemTypeInfo.Add(itemTypeInfo.AuctionSearch, itemTypeInfo);
                }
            }
        }
        foreach (ITEMTYPE_INFO current in this.m_ItemTypeInfo.Values)
        {
            text = NrTSingleton <NrTextMgr> .Instance.GetTextFromItem(current.TEXTKEY);

            if (!(string.Empty == text))
            {
                this.m_dlItemType.AddItem(text, current);
            }
        }
        this.m_dlItemType.SetViewArea(this.m_dlItemType.Count);
        this.m_dlItemType.RepositionItems();
        this.m_dlItemType.SetFirstItem();
        this.m_dlItemType.AddValueChangedDelegate(new EZValueChangedDelegate(this.OnChangeItemType));
        this.m_btUseMinLevel = (base.GetControl("Button_EquipLv01") as Button);
        this.m_btUseMinLevel.AddValueChangedDelegate(new EZValueChangedDelegate(this.ClickUseMinLevel));
        this.m_lbUseMinLevel = (base.GetControl("Label_EquipLv01") as Label);
        this.m_btUseMaxLevel = (base.GetControl("Button_EquipLv02") as Button);
        this.m_btUseMaxLevel.AddValueChangedDelegate(new EZValueChangedDelegate(this.ClickUseMaxLevel));
        this.m_lbUseMaxLevel = (base.GetControl("Label_EquipLv02") as Label);
        this.m_dlItemOption  = (base.GetControl("DropDownList_Option01") as DropDownList);
        this.m_dlItemOption.SetViewArea(this.m_dlItemOption.Count);
        this.m_dlItemOption.AddValueChangedDelegate(new EZValueChangedDelegate(this.OnChangeItemOption));
        this.m_btItemSkillLevel = (base.GetControl("Button_Option01") as Button);
        this.m_btItemSkillLevel.AddValueChangedDelegate(new EZValueChangedDelegate(this.ClickItemSkillLevel));
        this.m_lbItemSkillLevel = (base.GetControl("Label_Option01") as Label);
        this.m_btItemTradeCount = (base.GetControl("Button_TradeCount") as Button);
        this.m_btItemTradeCount.AddValueChangedDelegate(new EZValueChangedDelegate(this.ClickItemTradeCount));
        this.m_lbItemTradeCount = (base.GetControl("Label_TradeCount") as Label);
        this.m_dlSolSeason      = (base.GetControl("DropDownList_Base02") as DropDownList);
        this.m_dlSolSeason.AddItem(NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("1317"), 0);
        this.m_SeasonData.Add(0);
        List <SOL_GUIDE> valueAllSeason = NrTSingleton <NrTableSolGuideManager> .Instance.GetValueAllSeason();

        for (int i = 0; i < valueAllSeason.Count; i++)
        {
            if (0 < valueAllSeason[i].m_bSeason)
            {
                NrTSingleton <CTextParser> .Instance.ReplaceParam(ref text, new object[]
                {
                    NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("1208"),
                    "count",
                    valueAllSeason[i].m_bSeason
                });

                this.m_dlSolSeason.AddItem(text, valueAllSeason[i].m_bSeason);
                this.m_SeasonData.Add(valueAllSeason[i].m_bSeason);
            }
        }
        this.m_dlSolSeason.SetViewArea(this.m_dlSolSeason.Count);
        this.m_dlSolSeason.RepositionItems();
        this.m_dlSolSeason.SetFirstItem();
        this.m_dlSolSeason.AddValueChangedDelegate(new EZValueChangedDelegate(this.OnChangeSolSeason));
        this.m_btSolLevel = (base.GetControl("Button_EquipLv03") as Button);
        this.m_btSolLevel.AddValueChangedDelegate(new EZValueChangedDelegate(this.ClickSolLevel));
        this.m_lbSolLevel      = (base.GetControl("Label_EquipLv03") as Label);
        this.m_tfSolName       = (base.GetControl("TextField_SearchName") as TextField);
        this.m_btSolTradeCount = (base.GetControl("Button_TradeCount01") as Button);
        this.m_btSolTradeCount.AddValueChangedDelegate(new EZValueChangedDelegate(this.ClickSolTradeCount));
        this.m_lbSolTradeCount = (base.GetControl("Label_TradeCount1") as Label);
        if (!AuctionMainDlg.IsPayTypeHearts())
        {
            this.m_cbHearts.Hide(true);
            this.m_dtCostIconHearts.Hide(true);
            this.m_cbMoney.SetCheckState(1);
            AuctionMainDlg.SetChangePayTexture(this.m_dtCostIcon1, this.m_dtCostIcon2, AuctionDefine.ePAYTYPE.ePAYTYPE_GOLD);
        }
        if (!AuctionMainDlg.IsPayTypeMoney())
        {
            this.m_cbMoney.Hide(true);
            this.m_dtCostIconMoney.Hide(true);
            this.m_cbHearts.SetCheckState(1);
            AuctionMainDlg.SetChangePayTexture(this.m_dtCostIcon1, this.m_dtCostIcon2, AuctionDefine.ePAYTYPE.ePAYTYPE_HEARTS);
        }
        if (!AuctionMainDlg.IsPayTypeHearts() || !AuctionMainDlg.IsPayTypeMoney())
        {
            this.m_lbCostKind.Hide(true);
            this.m_cbHearts.Hide(true);
            this.m_cbMoney.Hide(true);
            this.m_dtCostIconHearts.Hide(true);
            this.m_dtCostIconMoney.Hide(true);
        }
        base.SetScreenCenter();
        base.ShowBlackBG(0.5f);
    }
    public bool IsRegister()
    {
        short auctionUseLevel = NrTSingleton <ContentsLimitManager> .Instance.GetAuctionUseLevel();

        if (0 >= auctionUseLevel)
        {
            Main_UI_SystemMessage.ADDMessage(NrTSingleton <NrTextMgr> .Instance.GetTextFromNotify("270"), SYSTEM_MESSAGE_TYPE.NAGATIVE_MESSAGE);
            return(false);
        }
        if (auctionUseLevel > (short)NrTSingleton <NkCharManager> .Instance.m_kMyCharInfo.GetLevel())
        {
            string empty = string.Empty;
            NrTSingleton <CTextParser> .Instance.ReplaceParam(ref empty, new object[]
            {
                NrTSingleton <NrTextMgr> .Instance.GetTextFromNotify("628"),
                "count",
                auctionUseLevel
            });

            Main_UI_SystemMessage.ADDMessage(empty, SYSTEM_MESSAGE_TYPE.NAGATIVE_MESSAGE);
            return(false);
        }
        if (0L >= this.m_lSellRegisterCost)
        {
            return(false);
        }
        if (this.m_lSellRegisterCost > NrTSingleton <NkCharManager> .Instance.m_kMyCharInfo.m_Money)
        {
            Main_UI_SystemMessage.ADDMessage(NrTSingleton <NrTextMgr> .Instance.GetTextFromNotify("1255"), SYSTEM_MESSAGE_TYPE.NAGATIVE_MESSAGE);
            return(false);
        }
        if (0L < this.m_lSellDirectCost)
        {
            long directCostMin = AuctionMainDlg.GetDirectCostMin(this.m_ePayType, this.m_lSellCost);
            if (this.m_lSellDirectCost < directCostMin)
            {
                Main_UI_SystemMessage.ADDMessage(NrTSingleton <NrTextMgr> .Instance.GetTextFromNotify("271"), SYSTEM_MESSAGE_TYPE.NAGATIVE_MESSAGE);
                return(false);
            }
        }
        if (this.m_SelectItem != null)
        {
        }
        if (this.m_SelectSoldierInfo != null)
        {
            if (this.m_SelectSoldierInfo.GetLevel() < AuctionMainDlg.GetSolLevelLimit())
            {
                string empty2 = string.Empty;
                NrTSingleton <CTextParser> .Instance.ReplaceParam(ref empty2, new object[]
                {
                    NrTSingleton <NrTextMgr> .Instance.GetTextFromNotify("649"),
                    "level1",
                    AuctionMainDlg.GetSolLevelLimit(),
                    "level2",
                    AuctionMainDlg.GetSolSkillLevelLimit()
                });

                Main_UI_SystemMessage.ADDMessage(empty2, SYSTEM_MESSAGE_TYPE.NAGATIVE_MESSAGE);
                return(false);
            }
            if (this.m_SelectSoldierInfo.GetLevel() < AuctionMainDlg.GetSolSkillLevelLimit())
            {
                string empty3 = string.Empty;
                NrTSingleton <CTextParser> .Instance.ReplaceParam(ref empty3, new object[]
                {
                    NrTSingleton <NrTextMgr> .Instance.GetTextFromNotify("649"),
                    "level1",
                    AuctionMainDlg.GetSolLevelLimit(),
                    "level2",
                    AuctionMainDlg.GetSolSkillLevelLimit()
                });

                Main_UI_SystemMessage.ADDMessage(empty3, SYSTEM_MESSAGE_TYPE.NAGATIVE_MESSAGE);
                return(false);
            }
            if (this.m_SelectSoldierInfo.IsEquipItem())
            {
                Main_UI_SystemMessage.ADDMessage(NrTSingleton <NrTextMgr> .Instance.GetTextFromNotify("304"), SYSTEM_MESSAGE_TYPE.NAGATIVE_MESSAGE);
                return(false);
            }
            if (this.m_SelectSoldierInfo.IsInjuryStatus())
            {
                Main_UI_SystemMessage.ADDMessage(NrTSingleton <NrTextMgr> .Instance.GetTextFromNotify("407"), SYSTEM_MESSAGE_TYPE.NAGATIVE_MESSAGE);
                return(false);
            }
            if (this.m_SelectSoldierInfo.IsAwakening())
            {
                Main_UI_SystemMessage.ADDMessage(NrTSingleton <NrTextMgr> .Instance.GetTextFromNotify("814"), SYSTEM_MESSAGE_TYPE.NAGATIVE_MESSAGE);
                return(false);
            }
            if (this.m_SelectSoldierInfo.IsAtbCommonFlag(1L))
            {
                Main_UI_SystemMessage.ADDMessage(NrTSingleton <NrTextMgr> .Instance.GetTextFromNotify("879"), SYSTEM_MESSAGE_TYPE.NAGATIVE_MESSAGE);
                return(false);
            }
        }
        int num = (int)NrTSingleton <NkCharManager> .Instance.m_kMyCharInfo.GetCharDetail(19);

        if (AuctionMainDlg.GetDailySellLimit() <= num)
        {
            string empty4 = string.Empty;
            NrTSingleton <CTextParser> .Instance.ReplaceParam(ref empty4, new object[]
            {
                NrTSingleton <NrTextMgr> .Instance.GetTextFromNotify("656"),
                "count",
                num
            });

            Main_UI_SystemMessage.ADDMessage(empty4, SYSTEM_MESSAGE_TYPE.NAGATIVE_MESSAGE);
            return(false);
        }
        return(true);
    }