BzReader.BrowseForm.BackgroundSearchFinished C# (CSharp) 메소드

BackgroundSearchFinished() 개인적인 메소드

Gets called from the background thread whenever the background search finishes
private BackgroundSearchFinished ( SearchItem si ) : void
si SearchItem Search item
리턴 void
        private void BackgroundSearchFinished(SearchItem si)
        {
            if (searchIdentifier == si.SearchIdentifier &&
                String.IsNullOrEmpty(si.Hits.ErrorMessages))
            {
                loadingResults = true;

                hitsBox.DataSource = si.Hits;
                hitsBox.SelectedItem = null;

                loadingResults = false;

                searchStatusLabel.Text = si.Hits.HadMoreHits ? String.Format(Properties.Resources.ShowingXTopResults, Indexer.MAX_SEARCH_HITS.ToString()) : String.Empty;
            }
            else
            {
                searchStatusLabel.Text = String.Empty;
            }
        }