public object Convert(object value, Type targetType, object parameter, CultureInfo culture) { if (value != null) { return(ECUInfoControl.GetIdentOptionName((byte)value)); } return(null); }
public object Convert(object value, Type targetType, object parameter, CultureInfo culture) { if (value != null) { if ((Application.Current != null) && (Application.Current is App)) //TODO: I don't like this dependence on grabbing the app... { var app = Application.Current as App; return(ECUInfoControl.GetDTCName((ushort)value)); } } return(null); }