private void SearchBtn_Click(object sender, EventArgs e) { string StrSearchTB = SearchTB.Text; if ("".Equals(StrSearchTB) || null == StrSearchTB) { MessageBox.Show("搜索时搜索框中的内容不能为空!"); return; } SysParam.SearchListViewStr(PersonAlarmListView, StrSearchTB); }