Exemple #1
0
 //点击购物,分类显示相关信息
 private void btnShopping_Click(object sender, EventArgs e)
 {
     String keyword = "购物";//搜素关键字
     UISearch srch = new UISearch(keyword);
     srch.Show();
     this.Hide();
 }
Exemple #2
0
        //点击搜索后,加载搜索结果
        private void btnSearch_Click(object sender, EventArgs e)
        {
            if (textBox1.Text.Length!=0)
            {
                String keyword = textBox1.Text;//搜素关键字
                UISearch srch = new UISearch(keyword);
                srch.Show();
            }
            else
            {
                MessageBox.Show("输入搜索项");
            }

        }