Statistic - UpdateLabel

This commit is contained in:
DucDangAnh 2020-06-30 14:37:16 +07:00
parent 75efa50256
commit 9894ce831d

View File

@ -50,25 +50,12 @@ namespace AIParkingApplication
{ {
return; return;
} }
lblSoLuongXeMay.Invoke(new Action(() => lblSoLuongXeMay.UpdateLabel(parkInfo.NumberOfMoto.ToString());
{ lblSoLuongOto.UpdateLabel(parkInfo.NumberOfCar.ToString());
lblSoLuongXeMay.Text = parkInfo.NumberOfMoto.ToString(); lblVehicleTotalIn.UpdateLabel(parkInfo.TotalIn);
})); lblVehicleTotalOut.UpdateLabel(parkInfo.TotalOut);
lblSoLuongOto.Invoke(new Action(() =>
{
lblSoLuongOto.Text = parkInfo.NumberOfCar.ToString();
}));
lblVehicleTotalIn.Invoke(new Action(() =>
{
lblVehicleTotalIn.Text = parkInfo.TotalIn;
}));
lblVehicleTotalOut.Invoke(new Action(() =>
{
lblVehicleTotalOut.Text = parkInfo.TotalOut;
}));
} }
private void Statistic_Load(object sender, EventArgs e) private void Statistic_Load(object sender, EventArgs e)
{ {
tlpStatisticTable.BorderStyle = BorderStyle.FixedSingle; tlpStatisticTable.BorderStyle = BorderStyle.FixedSingle;