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;
}
}