예제 #1
0
        public virtual void Load(Dictionary <string, int> dictionary)
        {
            foreach (var pair in dictionary)
            {
                var type = CurrencyCode.To(pair.Key);

                var element = Find(type);

                element.Value = pair.Value;
            }
        }
예제 #2
0
        public override object ReadJson(JsonReader reader, Type objectType, object existingValue, JsonSerializer serializer)
        {
            var type = CurrencyCode.To(reader.Value as string);

            return(type);
        }
예제 #3
0
 public Currency(string typeCode, int value) : this(CurrencyCode.To(typeCode), value)
 {
 }
예제 #4
0
 public ElementData(string typeCode, long value) : this(CurrencyCode.To(typeCode), value)
 {
 }
        public virtual void Perform(ItemTemplate item)
        {
            var currencyCode = CurrencyCode.From(item.Price.Type);

            Perform(item, currencyCode);
        }