Exemple #1
0
 // 选择进行搜索的方式
 private void button3_Click(object sender, EventArgs e)
 {
     if (this.comboBox1.SelectedText.Equals("多关键字匹配"))
     {
         string[] str  = this.comboBox1.Text.Split(' ');
         string   type = ((ComboBoxItem)this.comboBox1.SelectedItem).mvalue;
         IP2P.Search(str, type);
     }
     else
     {
         string type = ((ComboBoxItem)this.comboBox1.SelectedItem).mvalue;
         IP2P.Search(this.textBox6.Text, type);
     }
 }