Statistic - Check IsHandleCreated
This commit is contained in:
parent
0fc26f7f01
commit
d60b020ad2
|
@ -32,7 +32,7 @@ namespace AIParkingApplication
|
|||
private async void GetDataUpdate()
|
||||
{
|
||||
ParkInfo parkInfo = await apiController.GetStatisticInfo();
|
||||
if (parkInfo != null)
|
||||
if (parkInfo != null && IsHandleCreated)
|
||||
{
|
||||
lblSoLuongXeMay.UpdateLabel(parkInfo.NumberOfMoto.ToString());
|
||||
lblSoLuongOto.UpdateLabel(parkInfo.NumberOfCar.ToString());
|
||||
|
|
Loading…
Reference in New Issue
Block a user