Пример #1
0
        private void UpdateCollectionItems()
        {
            Thread thread = new Thread(() => {
                ExceptionReporter.EnableLogUnhandledOnThread();
                Browser.SetCollectionItems(_itemCollectionRepo.GetItemCollection());
            });

            thread.Start();
        }
Пример #2
0
        private void UpdateCollectionItems(ItemSearchRequest query)
        {
            Thread thread = new Thread(() => {
                ExceptionReporter.EnableLogUnhandledOnThread();
                Browser.SetCollectionItems(_itemCollectionRepo.GetItemCollection(query));
            });

            thread.Start();


            Browser.SetCollectionAggregateData(_itemCollectionRepo.GetItemAggregateStats());
        }
Пример #3
0
        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);
        }