private void LoadRecentSearches()
 {
     RecentSearches.Clear();
     foreach (var listing in _state.RecentSearches)
     {
         RecentSearches.Add(listing);
     }
 }
示例#2
0
        public async void RecentSearchItems()
        {
            SearchedItemList = await sts.GetRecentSearches(AppSettings.ListItemCount);


            if (SearchedItemList.ReturnMessage == "API Token Invalid")
            {
                //ResultMessage = SearchedItemList.ReturnMessage;
            }
            else
            {
                foreach (Shipment s in SearchedItemList.Shipments)
                {
                    RecentSearches.Add(new ShipmentModelView(s));
                }
            }
        }