/**************************************************************************/ private void CallbackSearchCollectionTextBoxSearchKeyUp(object sender, KeyEventArgs e) { ToolStripTextBox SearchTextBox = ( ToolStripTextBox )sender; DebugMsg(string.Format("CallbackSearchCollectionTextBoxSearchKeyUp: {0}", "CALLED")); switch (e.KeyCode) { case Keys.Return: DebugMsg(string.Format("CallbackSearchCollectionTextBoxSearchKeyUp: {0}", "RETURN")); MacroscopeSearchIndex SearchIndex = this.JobMaster.GetDocCollection().GetSearchIndex(); string SearchText = MacroscopeStringTools.CleanHtmlText(Text: SearchTextBox.Text); if (SearchText.Length > 0) { List <MacroscopeDocument> DocList = null; SearchTextBox.Text = SearchText; DebugMsg(string.Format("CallbackSearchCollectionTextBoxSearchKeyUp sText: {0}", SearchText)); DocList = SearchIndex.ExecuteSearchForDocuments( MacroscopeSearchIndex.SearchMode.AND, SearchText.Split(' ') ); this.msDisplaySearchCollection.ClearData(); DebugMsg(string.Format("CallbackSearchCollectionTextBoxSearchKeyUp DocList: {0}", DocList.Count)); this.msDisplaySearchCollection.RefreshData(DocList); } break; case Keys.Escape: DebugMsg(string.Format("CallbackSearchCollectionTextBoxSearchKeyUp: {0}", "ESCAPE")); SearchTextBox.Text = ""; break; default: break; } }