Check null trong trường hợp không có jsonProperty trả về thì set giá trị về "0" với {TotalIn} và {TotalOut}
This commit is contained in:
parent
6344eaed34
commit
7c0383fa9f
|
@ -58,10 +58,18 @@ namespace AIParkingApplication
|
|||
}));
|
||||
lblVehicleTotalIn.Invoke(new Action(() =>
|
||||
{
|
||||
if (string.IsNullOrEmpty(parkInfo.TotalIn))
|
||||
{
|
||||
parkInfo.TotalIn = "0";
|
||||
}
|
||||
lblVehicleTotalIn.Text = parkInfo.TotalIn;
|
||||
}));
|
||||
lblVehicleTotalOut.Invoke(new Action(() =>
|
||||
{
|
||||
if (string.IsNullOrEmpty(parkInfo.TotalOut))
|
||||
{
|
||||
parkInfo.TotalOut = "0";
|
||||
}
|
||||
lblVehicleTotalOut.Text = parkInfo.TotalOut;
|
||||
}));
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user