This commit is contained in:
sc committed 2022-03-09 00:26:19 +08:00
commit e7eac0690a
4 files changed
+44 -3

No files matched your search

+31
View File
@@ -0,0 +1,31 @@
using System;
using System.Collections.Generic;
using System.Globalization;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Data;
namespace Audit.ConvertMoels
{
internal class GramsSQLConvert : IValueConverter
{
public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
{
string G = value.ToString();
if (G == "0")
{
return "red";
}
else
{
return "black";
}
}
public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
{
return null;
}
}
}