private void SearchResultPage_SearchResultChanged(object sender, SearchCompleteArgs e) { this.ViewModel.SetProgressIndicator(false); SearchCompleteDelegate handler = this.SearchCompleteCallback; if (handler != null) { handler(sender, e); } }
public void OnSearchComplete(object sender, SearchCompleteArgs e) { this.SetProgressIndicator(false); this.Items.Clear(); if (e == null) { this.NumMatch = 0; this.NumMatchColor = CommonConstValue.BRUSH_TEXTINFO_ITEMS_EXCEEDED; } if (e != null) { this.NumMatch = e.NumItems; if (e.ItemsExceedThreshold || e.NumItems == 0) { this.NumMatchColor = CommonConstValue.BRUSH_TEXTINFO_ITEMS_EXCEEDED; return; } if (e.Items != null) { this.NumMatchColor = CommonConstValue.BRUSH_TEXTINFO_ITEMS_MATCH; foreach (LvItem item in e.Items) { this.Items.Add(item); } } } }