private void cbxKeyWord_SelectedIndexChanged(object sender, EventArgs e) { string selectedItem = cbxKeyWord.SelectedItem.ToString(); if (selectedItem == "显示全部") { TermSelectedForm form = new TermSelectedForm(cbxKeyWord); form.ShowDialog(); } else { } }
private void btnKeyWordSelect_Click(object sender, EventArgs e) { TermSelectedForm form = new TermSelectedForm(cbxKeyWord); form.Show(); }