mirror of
https://github.com/denglihong2007/CRSim
synced 2026-08-09 02:56:00 +08:00
fix: 成都东站立柱样式仍显示停止检票后车次 [skip cliff]
This commit is contained in:
@@ -17,7 +17,7 @@ namespace CRSim.ScreenSimulator.ViewModels.ChengduDong
|
||||
: base(timeService, settingsService)
|
||||
{
|
||||
StationType = StationType.Departure;
|
||||
timeService.RefreshSecondsElapsed += RefreshDisplay;
|
||||
timeService.OneSecondElapsed += RefreshDisplay;
|
||||
Initialize();
|
||||
}
|
||||
private async void Initialize()
|
||||
@@ -47,6 +47,12 @@ namespace CRSim.ScreenSimulator.ViewModels.ChengduDong
|
||||
else
|
||||
{
|
||||
CheckingTrain = null;
|
||||
if(now < departureTime && now > departureTime - _settings.StopCheckInAdvanceDuration)
|
||||
{
|
||||
FirstTrain = TrainInfo.ElementAtOrDefault(1);
|
||||
SecondTrain = TrainInfo.ElementAtOrDefault(2);
|
||||
return;
|
||||
}
|
||||
FirstTrain = TrainInfo.ElementAtOrDefault(0);
|
||||
SecondTrain = TrainInfo.ElementAtOrDefault(1);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user