33 lines
866 B
C#
33 lines
866 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Globalization;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
using System.Windows.Data;
|
|
using Cowain.Bake.Common.Enums;
|
|
|
|
|
|
namespace Cowain.Bake.Common.Converter
|
|
{
|
|
public class DummyStatusConvertor:IValueConverter
|
|
{
|
|
public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
|
|
{
|
|
if (value == null)
|
|
{
|
|
return null;
|
|
}
|
|
value = System.Convert.ToInt32(value);
|
|
EPalletDummyState EPalletDummyState = (EPalletDummyState)value;
|
|
return EPalletDummyState.FetchDescription();
|
|
}
|
|
|
|
public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
|
|
{
|
|
return null;
|
|
}
|
|
|
|
}
|
|
}
|