Ejemplo n.º 1
0
        /// <summary>
        /// Gets items from website or database
        /// </summary>
        /// <param name="fromDB"></param>
        /// <returns></returns>
        private List <Item> GetItems(bool fromDB = false)
        {
            List <Item> items = !fromDB
                ? ItemsProcessor.LoadItems(txtbSearchBar.Text, _page).Result
                : ItemsProcessor.LoadItemsFromDB(txtbSearchBar.Text).Result;

            return(items);
        }