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