public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
        {
            if (targetType != typeof(string))
            {
                throw new InvalidOperationException("TargetType must be string");
            }

            PayCardTypeCode code = (PayCardTypeCode)value;

            return(PayCardTypeCollection.TypesDictionary[code].ImageSource);
        }
Ejemplo n.º 2
0
 public PayCardType(string name, PayCardTypeCode code, string imageSource)
 {
     Name        = name;
     ImageSource = imageSource;
     Code        = code;
 }