Files
DMS/DMS.WPF/ValueConverts/EnumToStringConverter.cs

23 lines
567 B
C#
Raw Normal View History

2025-07-28 11:09:52 +08:00
using System;
using System.Globalization;
using System.Windows.Data;
namespace DMS.WPF.ValueConverts
{
public class EnumToStringConverter : IValueConverter
{
public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
{
if (value == null)
return null;
return value.ToString();
}
public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
{
throw new NotImplementedException();
}
}
}