using System; using System.Windows.Data; namespace Muchinfo.MTPClient.Infrastructure.Converters { public class MessageReadStatusConverter : IValueConverter { public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture) { string result = string.Empty; if (value != null) { bool bo = (bool)value; if (bo) { result = "pack://application:,,,/Client.Main;component/Images/CoolBlack/info.png"; } else { result = "pack://application:,,,/Client.Main;component/Images/CoolBlack/info_d.png"; } } return result; } public object ConvertBack(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture) { throw new NotImplementedException(); } } }