Beispiel #1
0
        public void Search(SearchSuggestionItem history)
        {
            if (!this.SearchHistorys.Contains(history))
            {
                this.Search(history.Text);
                return;
            }

            history.Order = this.SearchHistorys.Max(_p => _p.Order) + 1;

            ResultPage newpage = new ResultPage(1, history.Text, this.NewWebCrawlers());

            ViewHelper.ShowPage(newpage);
            newpage.Start();
            this.SearchPageVisibility = Visibility.Hidden;
            this.MainPageVisibility   = Visibility.Visible;

            Task.Factory.StartNew(this.SaveHostory);
        }