Example #1
0
 /// <summary>
 /// Raises the search complete event.
 /// </summary>
 /// <param name="e">The event argument.</param>
 protected virtual void OnSearchComplete(SearchCompleteEventArgs e)
 {
     if (SearchComplete != null)
     {
         SearchComplete.GetInvocationList().InvokeEventGUIThreadSafe(this, e);
     }
 }
Example #2
0
        private void SearchTabSciMagSearchComplete(object sender, SearchCompleteEventArgs <SciMagArticle> e)
        {
            SciMagSearchResultsTabViewModel sciMagSearchResultsTabViewModel =
                new SciMagSearchResultsTabViewModel(MainModel, CurrentWindowContext, e.SearchQuery, e.SearchResult);

            sciMagSearchResultsTabViewModel.OpenSciMagDetailsRequested += OpenSciMagDetailsRequested;
            ShowSearchResults(sender as SearchTabViewModel, sciMagSearchResultsTabViewModel);
        }
Example #3
0
        private void SearchTabFictionSearchComplete(object sender, SearchCompleteEventArgs <FictionBook> e)
        {
            FictionSearchResultsTabViewModel fictionSearchResultsTabViewModel =
                new FictionSearchResultsTabViewModel(MainModel, CurrentWindowContext, e.SearchQuery, e.SearchResult);

            fictionSearchResultsTabViewModel.OpenFictionDetailsRequested += OpenFictionDetailsRequested;
            ShowSearchResults(sender as SearchTabViewModel, fictionSearchResultsTabViewModel);
        }
Example #4
0
 /// <summary>
 /// Raises the search complete event.
 /// </summary>
 /// <param name="e">The event argument.</param>
 protected virtual void OnSearchComplete(SearchCompleteEventArgs e)
 {
     if (Logging.Enabled)
     {
         Logging.Log(this, "Async discovery search completed");
     }
     if (SearchComplete != null)
     {
         SearchComplete(this, e);
     }
 }
Example #5
0
        void searcher_SearchComplete(object sender, SearchCompleteEventArgs e)
        {
            double seconds = DateTime.Now.Subtract(searchStartTime).TotalSeconds;
            int    matches = lstResults.Items.Count;

            btnFind.Enabled = true;
            EnableSearch();
            if (tabControl1.SelectedIndex == 1)
            {
                toolStripStatusLabel1.Text = String.Format("Found {0} matches in {1} seconds.", matches, seconds);
                searchStarted = false;
            }
        }
 private void Game_SearchCompleted(object sender, SearchCompleteEventArgs args)
 {
     OutputTextBox.Text = args.SearchResults.ToResultsString();
 }
 private void NotifyResult(SearchCompleteEventArgs e)
 {
     if (SearchComplete != null)
     {
         SearchComplete(this, e);
     }
 }
 /// <summary>
 /// Handles the SearchComplete event.
 /// </summary>
 /// <param name="sender">The sender of the event.</param>
 /// <param name="e">The event arguments.</param>
 private void mdDiscovery_SearchComplete(object sender, SearchCompleteEventArgs e)
 {
     OnSearchComplete(new SearchCompleteEventArgs());
 }
 /// <summary>
 /// Raises the search complete event.
 /// </summary>
 /// <param name="e">The event argument.</param>
 protected virtual void OnSearchComplete(SearchCompleteEventArgs e)
 {
     if (SearchComplete != null)
         SearchComplete.GetInvocationList().InvokeEventGUIThreadSafe(this, e);
 }
Example #10
0
 /// <summary>
 /// Raises the search complete event.
 /// </summary>
 /// <param name="e">The event argument.</param>
 protected virtual void OnSearchComplete(SearchCompleteEventArgs e)
 {
     if (Logging.Enabled)
         Logging.Log(this, "Async discovery search completed");
     if (SearchComplete != null) SearchComplete(this, e);
 }
Example #11
0
 /// <summary>
 /// Handles the SearchComplete event.
 /// </summary>
 /// <param name="sender">The sender of the event.</param>
 /// <param name="e">The event arguments.</param>
 private void mdDiscovery_SearchComplete(object sender, SearchCompleteEventArgs e)
 {
     OnSearchComplete(new SearchCompleteEventArgs());
 }
Example #12
0
        private void OnSearchEngineSearchComplete(object sender, SearchCompleteEventArgs e)
        {
            this.IsSearching = false;

            this.AddStatusEvent((IMutable) new ManagedResourceString(Properties.WpfViewResources.ResourceManager, "SearchCompleteString", e.SearchItems.Length));
        }
Example #13
0
 /// <summary>
 /// Occurs when the UPnPDiscovery component completes
 /// its initial search. Note that this does not mean
 /// the search has ended, any new UPnP devices which
 /// become available will still trigger events to fire.
 /// </summary>
 /// <param name="sender">The sender of the event.</param>
 /// <param name="a">The event arguments.</param>
 private void UPnP_SearchComplete(object sender, SearchCompleteEventArgs a)
 {
     // Notify user
     WriteLine("Completed Initial Stage...");
 }
Example #14
0
 void mdDiscovery_SearchComplete(object sender, SearchCompleteEventArgs e)
 {
     enumTextVar = "Devices Enumerated";
     scanningForDevices = false;
 }
Example #15
0
 void mdDiscovery_SearchComplete(object sender, SearchCompleteEventArgs e)
 {
     enumTextVar        = "Devices Enumerated";
     scanningForDevices = false;
 }
 /// <summary>
 /// Occurs when the UPnPDiscovery component completes
 /// its initial search. Note that this does not mean
 /// the search has ended, any new UPnP devices which
 /// become available will still trigger events to fire.
 /// </summary>
 /// <param name="sender">The sender of the event.</param>
 /// <param name="a">The event arguments.</param>
 private void UPnP_SearchComplete(object sender, SearchCompleteEventArgs a)
 {
     // Notify user
     WriteLine("Completed Initial Stage...");
 }
 private void searchEngine_SearchComplete(object sender, SearchCompleteEventArgs e)
 {
     // Show results in the view
     BrowserView.SetResults(e.Results);
 }
Example #18
0
 protected internal void RaiseSearchComplete(SearchCompleteEventArgs e);
Example #19
0
 /// <summary>
 /// Handles when the discovery object finishes its initial search.
 /// </summary>
 /// <param name="sender">The sender of the event.</param>
 /// <param name="e">The event arguments.</param>
 private void mdDiscovery_SearchComplete(object sender, SearchCompleteEventArgs e)
 {
     StatusNotify(NotifyAction.SearchComplete);
     OnSearchComplete(new EventArgs());
 }
Example #20
0
 private void OnSearchComplete(object sender, SearchCompleteEventArgs e)
 {
     this.searchResults = e.SearchItems;
     this.RaiseCollectionChangedEvent(new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.Reset));
     this.RaisePropertyChangedEvent("Count");
 }
Example #21
0
 private void ODiscoveryOnSearchComplete(object sender, SearchCompleteEventArgs searchCompleteEventArgs)
 {
     Console.WriteLine("Suche Beendet!");
 }
 private void SearchObject_SearchComplete(object sender, SearchCompleteEventArgs e)
 {
     UpdateState();
 }