Beispiel #1
0
        public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
        {
            var inspection = value as IInspection;

            if (inspection == null)
            {
                return(null);
            }

            var converter = new InspectionSeverityImageSourceConverter();

            return(converter.Convert(inspection.Severity, targetType, parameter, culture));
        }
Beispiel #2
0
        public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
        {
            var converter = new InspectionSeverityImageSourceConverter();

            return(converter.ConvertBack(value, targetType, parameter, culture));
        }