SmallRefactor: Gói gọn Font trong biến tránh dùng nhiều lần
This commit is contained in:
parent
853c49969d
commit
88e1fb82ef
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue
Block a user