public override object ConvertFrom(ITypeDescriptorContext context, CultureInfo culture, object value) { DataDictionary.Generated.acceptor.SPEC_IMPLEMENTED_ENUM retVal = converters[0].val; foreach (Converter converter in converters) { if (converter.display.CompareTo(value) == 0) { retVal = converter.val; break; } } return(retVal); }
public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destType) { string retVal = converters[0].display; DataDictionary.Generated.acceptor.SPEC_IMPLEMENTED_ENUM val = (DataDictionary.Generated.acceptor.SPEC_IMPLEMENTED_ENUM)value; foreach (Converter converter in converters) { if (converter.val == val) { retVal = converter.display; break; } } return(retVal); }
public Converter(DataDictionary.Generated.acceptor.SPEC_IMPLEMENTED_ENUM val, string display) { this.val = val; this.display = display; }
public Converter(DataDictionary.Generated.acceptor.SPEC_IMPLEMENTED_ENUM val, string display) { this.val = val; this.display = display; }