Statistic - Check IsHandleCreated
This commit is contained in:
@@ -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());
|
||||
|
||||
Reference in New Issue
Block a user