@@ -151,13 +151,15 @@ private static class Symbols
151
151
[ Viewer . Catalog . GetString ( "Apply Quick" ) ] = Viewer . Catalog . GetString ( "ApplQ" ) ,
152
152
[ Viewer . Catalog . GetString ( "Apply Slow" ) ] = Viewer . Catalog . GetString ( "ApplS" ) ,
153
153
[ Viewer . Catalog . GetString ( "coal" ) ] = Viewer . Catalog . GetString ( "c" ) ,
154
+ [ Viewer . Catalog . GetString ( "Cont. Service" ) ] = Viewer . Catalog . GetString ( "Serv" ) ,
154
155
[ Viewer . Catalog . GetString ( "Emergency Braking Push Button" ) ] = Viewer . Catalog . GetString ( "EmerBPB" ) ,
155
156
[ Viewer . Catalog . GetString ( "Lap Self" ) ] = Viewer . Catalog . GetString ( "LapS" ) ,
156
157
[ Viewer . Catalog . GetString ( "Minimum Reduction" ) ] = Viewer . Catalog . GetString ( "MRedc" ) ,
157
158
[ Viewer . Catalog . GetString ( "(safe range)" ) ] = Viewer . Catalog . GetString ( "(safe)" ) ,
158
159
[ Viewer . Catalog . GetString ( "skid" ) ] = Viewer . Catalog . GetString ( "Skid" ) ,
159
160
[ Viewer . Catalog . GetString ( "slip warning" ) ] = Viewer . Catalog . GetString ( "Warning" ) ,
160
161
[ Viewer . Catalog . GetString ( "slip" ) ] = Viewer . Catalog . GetString ( "Slip" ) ,
162
+ [ Viewer . Catalog . GetString ( "Vac. Cont. Service" ) ] = Viewer . Catalog . GetString ( "Vac.Serv" ) ,
161
163
[ Viewer . Catalog . GetString ( "water" ) ] = Viewer . Catalog . GetString ( "w" )
162
164
} ;
163
165
@@ -798,16 +800,24 @@ void AddSeparator() => AddLabel(new ListLabel
798
800
} ) ;
799
801
800
802
index = trainBrakeStatus . IndexOf ( Viewer . Catalog . GetString ( "EQ" ) ) ;
801
- brakeInfoValue = trainBrakeStatus . Substring ( index , trainBrakeStatus . IndexOf ( Viewer . Catalog . GetString ( "BC" ) ) - index ) . TrimEnd ( ) ;
803
+ if ( trainBrakeStatus . IndexOf ( Viewer . Catalog . GetString ( "V" ) , index ) > 0 )
804
+ brakeInfoValue = trainBrakeStatus . Substring ( index , trainBrakeStatus . IndexOf ( Viewer . Catalog . GetString ( "V" ) , index ) - index ) . TrimEnd ( ) ;
805
+ else
806
+ brakeInfoValue = trainBrakeStatus . Substring ( index , trainBrakeStatus . IndexOf ( Viewer . Catalog . GetString ( "BC" ) ) - index ) . TrimEnd ( ) ;
802
807
803
808
AddLabel ( new ListLabel
804
809
{
805
810
LastCol = brakeInfoValue ,
806
811
} ) ;
812
+
807
813
if ( trainBrakeStatus . Contains ( Viewer . Catalog . GetString ( "EOT" ) ) )
808
814
{
809
- int indexOffset = Viewer . Catalog . GetString ( "EOT" ) . Length + 1 ;
810
- index = trainBrakeStatus . IndexOf ( Viewer . Catalog . GetString ( "BC" ) ) ;
815
+ int indexOffset = Viewer . Catalog . GetString ( "EOT" ) . Length + 1 ;
816
+ if ( trainBrakeStatus . IndexOf ( Viewer . Catalog . GetString ( "V" ) , index ) > 0 )
817
+ index = trainBrakeStatus . IndexOf ( Viewer . Catalog . GetString ( "V" ) , index ) ;
818
+ else
819
+ index = trainBrakeStatus . IndexOf ( Viewer . Catalog . GetString ( "BC" ) ) ;
820
+
811
821
brakeInfoValue = trainBrakeStatus . Substring ( index , trainBrakeStatus . IndexOf ( Viewer . Catalog . GetString ( "EOT" ) ) - index ) . TrimEnd ( ) ;
812
822
AddLabel ( new ListLabel
813
823
{
@@ -822,8 +832,13 @@ void AddSeparator() => AddLabel(new ListLabel
822
832
}
823
833
else
824
834
{
825
- index = trainBrakeStatus . IndexOf ( Viewer . Catalog . GetString ( "BC" ) ) ;
835
+ if ( trainBrakeStatus . IndexOf ( Viewer . Catalog . GetString ( "V" ) , index ) > 0 )
836
+ index = trainBrakeStatus . IndexOf ( Viewer . Catalog . GetString ( "V" ) , index ) ;
837
+ else
838
+ index = trainBrakeStatus . IndexOf ( Viewer . Catalog . GetString ( "BC" ) ) ;
839
+
826
840
brakeInfoValue = trainBrakeStatus . Substring ( index , trainBrakeStatus . Length - index ) . TrimEnd ( ) ;
841
+ brakeInfoValue = brakeInfoValue . StartsWith ( Viewer . Catalog . GetString ( "V" ) ) ? brakeInfoValue . Replace ( Viewer . Catalog . GetString ( "V" ) , Viewer . Catalog . GetString ( "V" ) + " " ) : brakeInfoValue ;
827
842
AddLabel ( new ListLabel
828
843
{
829
844
LastCol = brakeInfoValue ,
0 commit comments