Пример #1
0
        public override object ConvertFrom(ITypeDescriptorContext context, CultureInfo culture, object value)
        {
            var stringValue = value as string;

            if (stringValue != null)
            {
                return(BoolOrNoneConverter.ValueConverter(stringValue));
            }
            return(null);
        }
Пример #2
0
 protected internal override BoolOrNone ConvertStringToValue(string stringVal)
 {
     return(BoolOrNoneConverter.ValueConverter(stringVal));
 }