Reworked cleaning of the LapTimes

This commit is contained in:
2023-05-12 11:08:21 +02:00
parent 1d17963572
commit d559d4a31e
3 changed files with 170 additions and 9 deletions
+3 -5
View File
@@ -97,17 +97,15 @@ namespace Test_Merge
//result.Name = (string)await (w as DriverNameWindow).DecodePng(driverList);
result.Name = "Unknown";
if (w is DriverDrsWindow)
//result.DRS = (bool)await (w as DriverDrsWindow).DecodePng();
result.DRS = false;
result.DRS = (bool)await (w as DriverDrsWindow).DecodePng();
if (w is DriverGapToLeaderWindow)
//result.GapToLeader = (int)await (w as DriverGapToLeaderWindow).DecodePng();
result.GapToLeader = 0;
if (w is DriverLapTimeWindow)
//result.LapTime = (int)await (w as DriverLapTimeWindow).DecodePng();
result.LapTime = 0;
result.LapTime = (int)await (w as DriverLapTimeWindow).DecodePng();
//result.LapTime = 0;
if (w is DriverPositionWindow)
result.Position = (int)await (w as DriverPositionWindow).DecodePng();
//result.Position = 0;
if (w is DriverSectorWindow)
{
sectorCount++;