public IEnumerable <Collectible> GetCollectiblesWithAttribute(IEnumerable <string> attrList) { if (AllItems == null || AllItems.Count() <= 0) { return(null); } return(this.m_itemsByAttr.Where(kvp => attrList.Contains(kvp.Key)).SelectMany(kvp => kvp.Value)); }
public IEnumerable <Collectible> GetCollectiblesReceiveAction(string action) { if (AllItems == null || AllItems.Count() <= 0) { return(null); } return(this.m_itemsByReceivedAction.Where(kvp => kvp.Key.ToLower() == action.ToLower()).SelectMany(kvp => kvp.Value)); }
public void circulationUpdate() { TileUpdateManager.CreateTileUpdaterForApplication().Clear(); for (int i = 0; i < AllItems.Count(); i++) { //BitmapImage bitmap = (BitmapImage)ViewModel.AllItems[i].imgsource; UpdatePrimaryTile(AllItems[i].musicName, AllItems[i].date.Date.ToString("yyyy-MM-dd"), AllItems[i].photoUri); } }
public IEnumerable <Collectible> GetItemsForActionOnEntity(IActiveEntity actee, string action) { if (AllItems == null || AllItems.Count() <= 0) { return(null); } return(AllItems.Where(c => c != null && ActiveEntityManager.Instance.CanActOn(c, actee, action)).ToList()); }