Ejemplo n.º 1
0
        public CardDataStore.CardsQuery GetQuery()
        {
            string       field    = this.SearchCriteria.Field.Replace(" ", "");
            PropertyInfo property = typeof(Card).GetProperty(field);

            if (property.PropertyType == typeof(bool))
            {
                return(CardDataStore.Where(SearchCriteria.Field, SearchCriteria.Set));
            }
            else if (SearchCriteria.Operation == "Exists")
            {
                return(CardDataStore.Where(SearchCriteria.Field, SearchCriteria.Operation, SearchCriteria.Set.ToString()));
            }
            else
            {
                return(CardDataStore.Where(SearchCriteria.Field, SearchCriteria.Operation, SearchCriteria.Value));
            }
        }
Ejemplo n.º 2
0
 async void AllWithArt(object sender, EventArgs e)
 {
     await Navigation.PushAsync(new CardsListPage(CardDataStore.Where("IllustrationId", "Equals", this.Cards[this.Carousel.Position].IllustrationId).ToDataStore()));
 }