using System; using System.Globalization; using System.Linq; using System.Windows.Data; using BS.Shared; using BeWo.View; using BS.Shared.Core; namespace BeWo.Converter { public class FileAttachmentTypeConverter : IValueConverter { public object Convert(object value, Type targetType, object parameter, CultureInfo culture) { var fat = (FileAttachmentType)value; return EnumTranslations.FileAttachmentTypeTranslations.Single(t=>t.Key.Equals(fat)).Value; } public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture) { throw new NotImplementedException(); } } }