Esempio n. 1
0
 public static ObservableMultiCard AsObservable(this IMultiCard card)
 {
     if (card == null) return null;
     var ret = new ObservableMultiCard
                   {
                       Id = card.Id,
                       Name = card.Name.Clone() as string,
                       Properties = card.Properties.ToDictionary(x => x.Key, y => y.Value),
                       ImageUri = card.ImageUri.Clone() as string,
                       Alternate = card.Alternate.Clone() as string,
                       SetId = card.SetId,
                       Quantity = card.Quantity
                   };
     return ret;
 }
Esempio n. 2
0
 private string GetCardPropertyValue(ObservableMultiCard card, PropertyDef def)
 {
     if (!card.PropertySet().ContainsKey(def)) return null;
     return card.PropertySet()[def] as String;
 }
Esempio n. 3
0
 public bool IsMatch(ObservableMultiCard c)
 {
     if (!c.PropertySet().ContainsKey(Property)) return false;
     return IsValueMatch(c.PropertySet()[Property]);
 }
 public static ObservableMultiCard AsObservable(this IMultiCard card)
 {
     if (card == null) return null;
     var ret = new ObservableMultiCard(card);
     return ret;
 }