修改信息页面MonitorView的显示逻辑,添加当前步骤高亮显示

This commit is contained in:
sc committed 2025-04-27 16:59:27 +08:00
1 parent de843f4e90
commit 5f7c6bee47
7 files changed
+409 -34

No files matched your search

+27
View File
@@ -0,0 +1,27 @@
using System;
using System.Collections.Generic;
using System.Globalization;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Data;
namespace SunlightCentralizedControlManagement_SCCM_.ConvertMoels
{
internal class BoolToVisidilityConvert : IValueConverter
{
public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
{
return (value is bool boolvalue && boolvalue) ?
Visibility.Visible:
Visibility.Collapsed;
}
public object ConvertBack(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
{
throw new NotImplementedException();
}
}
}
+1 -1
View File
@@ -23,7 +23,7 @@ namespace SunlightCentralizedControlManagement_SCCM_.ConvertMoels
if (i == "201") return "#FF00FF00";
else if (i == "202") return "#FFFFFF00";
else if (i == "309") return "#FFFF0000";
else if (i == "309") return "#FFFFFFFF";
else if (i == "800") return "#FFFF0000";
else return "#FF000000";
}