private void RaiseNextPrevEvent(SearchEventType type) { if (this.Text == "") { return; } SearchEventArgs args = new SearchEventArgs(SearchEvent); args.Keyword = this.Text; args.SearchEventType = type; if (m_listSection != null) { args.Sections = (List <string>)m_listSection.SelectedItems.Cast <string>().ToList(); } RaiseEvent(args); }
private void RaiseSearchEvent() { if (this.Text == "") { return; } if (!m_listPreviousItem.Items.Contains(this.Text)) { m_listPreviousItem.Items.Add(this.Text); } ShowSearch = false; SearchEventArgs args = new SearchEventArgs(SearchEvent); args.Keyword = this.Text; args.SearchEventType = SearchEventType.Search; if (m_listSection != null) { args.Sections = (List <string>)m_listSection.SelectedItems.Cast <string>().ToList(); } RaiseEvent(args); }