private void UpdateCollectionItems() { Thread thread = new Thread(() => { ExceptionReporter.EnableLogUnhandledOnThread(); Browser.SetCollectionItems(_itemCollectionRepo.GetItemCollection()); }); thread.Start(); }
private void UpdateCollectionItems(ItemSearchRequest query) { Thread thread = new Thread(() => { ExceptionReporter.EnableLogUnhandledOnThread(); Browser.SetCollectionItems(_itemCollectionRepo.GetItemCollection(query)); }); thread.Start(); Browser.SetCollectionAggregateData(_itemCollectionRepo.GetItemAggregateStats()); }
public string Search(ItemSearchRequest query, bool duplicatesOnly, bool includeBuddyItems, bool orderByLevel) { JsBind.ItemSourceExhausted = false; // Signal that we are loading items Browser.ShowLoadingAnimation(); var message = Search_(query, duplicatesOnly, includeBuddyItems, orderByLevel); if (ApplyItems()) { Browser.RefreshItems(); } else { JsBind.UpdateItems(new List <JsonItem>()); JsBind.UpdateCollectionItems(_itemCollectionRepo.GetItemCollection()); Browser.RefreshItems(); } return(message); }