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

45 lines
1.1 KiB

using System;
using System.Globalization;
using System.Windows.Data;
namespace formula_manage.ConvertMoels
{
internal class UserSQLConvert : IValueConverter
{
public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
{
string Capacity = System.Convert.ToString(value);
if (Capacity == "0")//类型
{
return "停用";
}
else
{
if (Capacity == "1")
{
return "限制";
}
else
{
if (Capacity == "2")
{
return "启用";
}
else
{
return "未知类型";
}
}
}
}
/// <summary>
/// </summary>
public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
{
return null;
}
}
}