Files
6098-5/Cowain.Preheat.Common/Converter/SendFlagConvertor.cs
T
2026-05-28 22:11:13 +08:00

27 lines
741 B
C#

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