Exemplo n.º 1
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);
    }