diff --git a/AIParkingApplication/Statistic.cs b/AIParkingApplication/Statistic.cs index 7c2a752..11fccfd 100644 --- a/AIParkingApplication/Statistic.cs +++ b/AIParkingApplication/Statistic.cs @@ -76,14 +76,14 @@ namespace AIParkingApplication tlpStatisticTable.BorderStyle = BorderStyle.FixedSingle; tlpStatisticTable.CellBorderStyle = TableLayoutPanelCellBorderStyle.Single; - - lblLoaiXe = new Label() { Text = "Loại xe", Font = new System.Drawing.Font("Microsoft Sans Serif", 11F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, 0) }; - lblXeMay = new Label() { Text = "Xe máy", Font = new System.Drawing.Font("Microsoft Sans Serif", 11F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, 0) }; - lblOto = new Label() { Text = "Ô tô", Font = new System.Drawing.Font("Microsoft Sans Serif", 11F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, 0) }; - lblSoLuong = new Label() { Text = "Số Lượng", Font = new System.Drawing.Font("Microsoft Sans Serif", 11F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, 0) }; - lblTT = new Label() { Text = "TT", Font = new System.Drawing.Font("Microsoft Sans Serif", 11F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, 0) }; - lblSoLuongXeMay = new Label() { Text = "0", Font = new System.Drawing.Font("Microsoft Sans Serif", 11F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, 0) }; - lblSoLuongOto = new Label() { Text = "0", Font = new System.Drawing.Font("Microsoft Sans Serif", 11F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, 0) }; + System.Drawing.Font labelFont = new System.Drawing.Font("Microsoft Sans Serif", 11F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, 0); + lblLoaiXe = new Label() { Text = "Loại xe", Font = labelFont }; + lblXeMay = new Label() { Text = "Xe máy", Font = labelFont }; + lblOto = new Label() { Text = "Ô tô", Font = labelFont }; + lblSoLuong = new Label() { Text = "Số Lượng", Font = labelFont }; + lblTT = new Label() { Text = "TT", Font = labelFont }; + lblSoLuongXeMay = new Label() { Text = "0", Font = labelFont }; + lblSoLuongOto = new Label() { Text = "0", Font = labelFont }; //Fill to StaticTable tlpStatisticTable.Controls.Add(lblLoaiXe, 0, 0);