feat: #121 添加北京南站主要看板

This commit is contained in:
wxl0430
2025-05-18 20:57:12 +08:00
committed by GitHub
parent 7d5135f385
commit bb15ff623e
7 changed files with 263 additions and 5 deletions

View File

@@ -11,6 +11,14 @@ namespace CRSim.ScreenSimulator.Converters
{
private ITimeService _timeService;
private Settings _settings;
public string DisplayMode { get; set; } = "Normal";
/*
Normal: 标准显示。
Alternating_Row_Colors: 候车状态隔行异色显示第4个参数控制行号
*/
public List<SolidColorBrush> WaitingColorList { get; set; } = new List<SolidColorBrush> { new(Colors.White), new(Colors.Yellow) };
public SolidColorBrush WaitingColor { get; set; } = new(Colors.White);
public SolidColorBrush CheckingTicketsColor { get; set; } = new(Colors.LightGreen);
public SolidColorBrush StopCheckingTicketsColor { get; set; } = new(Colors.Red);
@@ -49,6 +57,9 @@ namespace CRSim.ScreenSimulator.Converters
{
return StopCheckingTicketsColor;
}
if (DisplayMode == "Alternating_Row_Colors" && values.Length > 3 && values[3] is int rowNumber){
return WaitingColorList[rowNumber % WaitingColorList.Count];
}
return WaitingColor;
}
return new SolidColorBrush(Colors.Transparent);