Đưa chu kì lấy dữ liệu sang Constant. {TIME_TO_GET_STATISTIC_INFO}. Đơn vị tính theo giây

This commit is contained in:
Le Chau 2020-06-25 09:58:47 +07:00
parent b2cdbf26f5
commit 56e16cf267
2 changed files with 3 additions and 1 deletions

View File

@ -9,5 +9,7 @@
#endregion #endregion
public const string CAMERA_FAILED_IMAGE_PATH = @"Images\CantConnectCamera.jpg"; public const string CAMERA_FAILED_IMAGE_PATH = @"Images\CantConnectCamera.jpg";
public const int TIME_TO_GET_STATISTIC_INFO = 60;
} }
} }

View File

@ -32,7 +32,7 @@ namespace AIParkingApplication
while (true) while (true)
{ {
GETDataFromServer(); GETDataFromServer();
Thread.Sleep(1000); Thread.Sleep(AppConstant.TIME_TO_GET_STATISTIC_INFO * 1000);
} }
} }