Statistic - Remove redundant code.

This commit is contained in:
DucDangAnh 2020-06-30 14:17:11 +07:00
parent a7f5406550
commit 75efa50256

View File

@ -2,13 +2,11 @@
using System.Windows.Forms; using System.Windows.Forms;
using System.Threading; using System.Threading;
using Newtonsoft.Json; using Newtonsoft.Json;
using System.Net.Http;
namespace AIParkingApplication namespace AIParkingApplication
{ {
public partial class Statistic : UserControl public partial class Statistic : UserControl
{ {
private readonly HttpClient client;
private readonly Thread thrStatistics; private readonly Thread thrStatistics;
private readonly TimeSpan updateInterval; private readonly TimeSpan updateInterval;
private ParkInfo parkInfo; private ParkInfo parkInfo;
@ -90,8 +88,8 @@ namespace AIParkingApplication
tlpStatisticTable.Controls.Add(lblSoLuong, 1, 0); tlpStatisticTable.Controls.Add(lblSoLuong, 1, 0);
tlpStatisticTable.Controls.Add(lblSoLuongXeMay, 1, 1); tlpStatisticTable.Controls.Add(lblSoLuongXeMay, 1, 1);
tlpStatisticTable.Controls.Add(lblSoLuongOto, 1, 2); tlpStatisticTable.Controls.Add(lblSoLuongOto, 1, 2);
} }
public class ParkInfo public class ParkInfo
{ {
[JsonProperty("oto")] [JsonProperty("oto")]