using Cowain.Bake.Common.Enums; using System; using System.Globalization; using System.Windows.Data; namespace Cowain.Bake.BLL.Converter { public class LogTypeConverter : IValueConverter { public object Convert(object value, Type targetType, object parameter, CultureInfo culture) { if (value == null) { return null; } value = System.Convert.ToInt32(value); E_LogType status = (E_LogType)value; return status.FetchDescription(); } public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture) { return null; } } }