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 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);
    }