x86.frmMain.button10_Click C# (CSharp) Method

button10_Click() private method

private button10_Click ( object sender, EventArgs e ) : void
sender object
e System.EventArgs
return void
        private void button10_Click(object sender, EventArgs e)
        {

            if (this.rw_txt_key.Text.Trim() == "" || this.rw_txt_key.Text.Trim() == "宝贝关键词")
            {
                int num = (int)MessageBox.Show("关键字不能为空!");
            }
            else
            {
                this.rw_com_jd.Text = "按京东";
                taobaofrm taobaofrm = new taobaofrm();
                string str = HttpUtility.UrlEncode(this.rw_txt_key.Text, Encoding.GetEncoding("UTF-8"));
                taobaofrm.Url = "http://search.jd.com/Search?keyword=" + str;
                taobaofrm.Url += "&enc=utf-8";
                if (taobaofrm.ShowDialog() == DialogResult.OK)
                    this.strResultUrl = taobaofrm.Url;
            }
        }
frmMain