EquipmentMaintainStatusConverter.cs
795 Bytes
using System;
using System.Globalization;
using System.Windows.Data;
using HHECS.Infrastructure.CommonHelper;
using HHECS.Model.Enums;
namespace HHECS.WinCommon.ValueConverter
{
public class EquipmentMaintainStatusConverter : IValueConverter
{
public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
{
if (value is int)
{
return typeof(EquipmentMaintainStatus).GetDescriptionString((int)value);
}
else
{
return "未识别的标志";
}
}
public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
{
throw new NotImplementedException();
}
}
}