using System;
using System.Collections.Generic;
using System.Globalization;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Data;
namespace SWS.CAD.Converter
{
public class NotificationCheckFLGConverter : IValueConverter
{
///
/// 源到目标
///
///
///
///
///
///
public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
{
// string ret = "";
if (value == null)
return "未读";
return value.ToString() == "0" ? "未读" : "已读";
}
///
/// 目标到源
///
///
///
///
///
///
public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
{
throw new NotImplementedException();
}
}
}