This commit is contained in:
sc committed 2023-11-14 01:18:15 +08:00
commit 9407221589
6 files changed
+480 -6

No files matched your search

+48
View File
@@ -0,0 +1,48 @@
using System;
using System.Collections.Generic;
using System.Globalization;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
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;
}
}
}