예제 #1
0
        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));
        }
예제 #2
0
        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));
        }
예제 #3
0
 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);
     }
 }
예제 #4
0
        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());
        }