Ejemplo n.º 1
0
        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);
        }
Ejemplo n.º 2
0
        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);
        }