This commit is contained in:
sc committed 2024-09-14 01:09:49 +08:00
commit 21d5cbc00a
4 files changed
+44 -30

No files matched your search

+3 -3
View File
@@ -12,9 +12,9 @@ namespace DyeingComputer.ConvertMoels
{
public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
{
String G = value.ToString();
bool G =(Boolean) value;
// bool G = (bool)value;
if (G == "False")//判断单元格值是否为零
if (!G)//判断单元格值是否为零
{
return "";//零返回
}
@@ -26,7 +26,7 @@ namespace DyeingComputer.ConvertMoels
public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
{
return null;
return "";
}
}
}
+2 -2
View File
@@ -14,13 +14,13 @@ namespace DyeingComputer.ConvertMoels
{
String G = value.ToString();
// bool G = (bool)value;
if ((G == "AI")||(G == "DI"))//判断单元格值是否为零
if ((G == "AI")||(G == "DO"))//判断单元格值是否为零
{
return "green";//零返回
}
else
{
return "red";//非零返回红色
return "blue";//非零返回红色
}
}