From 88e1fb82ef11b431630cf781a7ccc6e8de1b57ac Mon Sep 17 00:00:00 2001 From: Le Chau Date: Thu, 25 Jun 2020 09:37:18 +0700 Subject: [PATCH] =?UTF-8?q?SmallRefactor:=20G=C3=B3i=20g=E1=BB=8Dn=20Font?= =?UTF-8?q?=20trong=20bi=E1=BA=BFn=20tr=C3=A1nh=20d=C3=B9ng=20nhi=E1=BB=81?= =?UTF-8?q?u=20l=E1=BA=A7n?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- AIParkingApplication/Statistic.cs | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) 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);