You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

41 lines
1.0 KiB
C#

using System;
using System.Collections.Generic;
using System.Globalization;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Data;
namespace XGLFinishPro.Tools
{
public class DeviceNameConverter : IValueConverter
{
public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
{
if (value.Equals("equ_type_cxj"))
{
return "成型机";
}
if (value.Equals("equ_type_hf"))
{
return "烘房";
}
if (value.Equals("equ_type_lg"))
{
return "料罐";
}
if (value.Equals("equ_type_spdsj"))
{
return "吊筛机";
}
return "未知";
}
public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
{
throw new NotImplementedException();
}
}
}