Merge branch 'master' of http://www.scserverddns.top:13000/sc/DyeingComputer
This commit is contained in:
commit
21d5cbc00a
4 files changed
+44
-30
No files matched your search
@@ -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 "";
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -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";//非零返回红色
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user