Statistic - UpdateLabel
This commit is contained in:
parent
75efa50256
commit
9894ce831d
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user