private void toolStripTextBox_Search_KeyDown(object sender, KeyEventArgs e) { if (e.KeyCode == Keys.Enter) { if (!txt_search.Text.Equals(String.Empty)) { List <Location> search_results = LuceneAccess.SearchQuery(txt_search.Text.Trim()); // Hiển thị lên listview OpenLocations(search_results); } } }
private void Build_Index() { rebuilt = LuceneAccess.Initiate(); if (rebuilt) { this.progressBar_Rebuild.Invoke(new MethodInvoker(delegate { progressBar_Rebuild.Visible = false; })); this.btn_stop.Invoke(new MethodInvoker(delegate { btn_stop.Visible = false; })); } }