From c8a5a489f6573e2a8de18268413c7262834e7708 Mon Sep 17 00:00:00 2001 From: DucDangAnh Date: Wed, 17 Jun 2020 15:39:23 +0700 Subject: [PATCH] Update UI LaneIn --- AIParkingApplication/LaneIn.Designer.cs | 105 +++++++++++++++--------- AIParkingApplication/LaneIn.cs | 2 +- AIParkingApplication/LaneIn.resx | 39 --------- 3 files changed, 67 insertions(+), 79 deletions(-) diff --git a/AIParkingApplication/LaneIn.Designer.cs b/AIParkingApplication/LaneIn.Designer.cs index d9d048a..d712e14 100644 --- a/AIParkingApplication/LaneIn.Designer.cs +++ b/AIParkingApplication/LaneIn.Designer.cs @@ -28,19 +28,19 @@ /// private void InitializeComponent() { - this.backgroundWorker2 = new System.ComponentModel.BackgroundWorker(); this.pictureBoxPlateImage = new System.Windows.Forms.PictureBox(); this.pictureBoxPlateVideo = new System.Windows.Forms.PictureBox(); this.grbPlateCamera = new System.Windows.Forms.GroupBox(); this.pictureBoxOverviewImage = new System.Windows.Forms.PictureBox(); this.pictureBoxOverviewVideo = new System.Windows.Forms.PictureBox(); this.grbOverviewCamera = new System.Windows.Forms.GroupBox(); - this.backgroundWorker1 = new System.ComponentModel.BackgroundWorker(); this.lblLaneLabel = new System.Windows.Forms.Label(); this.lblCardType = new System.Windows.Forms.Label(); this.lblCardNumber = new System.Windows.Forms.Label(); this.grbCardInformation = new System.Windows.Forms.GroupBox(); - this.button1 = new System.Windows.Forms.Button(); + this.lblCardTime = new System.Windows.Forms.Label(); + this.lblPlateString = new System.Windows.Forms.Label(); + this.lblRecogizePlateStatus = new System.Windows.Forms.Label(); ((System.ComponentModel.ISupportInitialize)(this.pictureBoxPlateImage)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.pictureBoxPlateVideo)).BeginInit(); this.grbPlateCamera.SuspendLayout(); @@ -52,18 +52,20 @@ // // pictureBoxPlateImage // - this.pictureBoxPlateImage.Location = new System.Drawing.Point(263, 23); + this.pictureBoxPlateImage.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); + this.pictureBoxPlateImage.Location = new System.Drawing.Point(226, 29); this.pictureBoxPlateImage.Name = "pictureBoxPlateImage"; - this.pictureBoxPlateImage.Size = new System.Drawing.Size(250, 250); + this.pictureBoxPlateImage.Size = new System.Drawing.Size(200, 200); this.pictureBoxPlateImage.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage; this.pictureBoxPlateImage.TabIndex = 0; this.pictureBoxPlateImage.TabStop = false; // // pictureBoxPlateVideo // - this.pictureBoxPlateVideo.Location = new System.Drawing.Point(6, 23); + this.pictureBoxPlateVideo.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); + this.pictureBoxPlateVideo.Location = new System.Drawing.Point(15, 29); this.pictureBoxPlateVideo.Name = "pictureBoxPlateVideo"; - this.pictureBoxPlateVideo.Size = new System.Drawing.Size(250, 250); + this.pictureBoxPlateVideo.Size = new System.Drawing.Size(200, 200); this.pictureBoxPlateVideo.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage; this.pictureBoxPlateVideo.TabIndex = 0; this.pictureBoxPlateVideo.TabStop = false; @@ -73,27 +75,27 @@ this.grbPlateCamera.Controls.Add(this.pictureBoxPlateImage); this.grbPlateCamera.Controls.Add(this.pictureBoxPlateVideo); this.grbPlateCamera.Font = new System.Drawing.Font("Microsoft Sans Serif", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.grbPlateCamera.Location = new System.Drawing.Point(15, 166); + this.grbPlateCamera.Location = new System.Drawing.Point(9, 250); this.grbPlateCamera.Name = "grbPlateCamera"; - this.grbPlateCamera.Size = new System.Drawing.Size(519, 284); + this.grbPlateCamera.Size = new System.Drawing.Size(441, 246); this.grbPlateCamera.TabIndex = 12; this.grbPlateCamera.TabStop = false; - this.grbPlateCamera.Text = "CAMERA BIỂN SỐ"; + this.grbPlateCamera.Text = "Camera biển số"; // // pictureBoxOverviewImage // - this.pictureBoxOverviewImage.Location = new System.Drawing.Point(263, 24); + this.pictureBoxOverviewImage.Location = new System.Drawing.Point(226, 30); this.pictureBoxOverviewImage.Name = "pictureBoxOverviewImage"; - this.pictureBoxOverviewImage.Size = new System.Drawing.Size(250, 250); + this.pictureBoxOverviewImage.Size = new System.Drawing.Size(200, 200); this.pictureBoxOverviewImage.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage; this.pictureBoxOverviewImage.TabIndex = 0; this.pictureBoxOverviewImage.TabStop = false; // // pictureBoxOverviewVideo // - this.pictureBoxOverviewVideo.Location = new System.Drawing.Point(6, 24); + this.pictureBoxOverviewVideo.Location = new System.Drawing.Point(15, 30); this.pictureBoxOverviewVideo.Name = "pictureBoxOverviewVideo"; - this.pictureBoxOverviewVideo.Size = new System.Drawing.Size(250, 250); + this.pictureBoxOverviewVideo.Size = new System.Drawing.Size(200, 200); this.pictureBoxOverviewVideo.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage; this.pictureBoxOverviewVideo.TabIndex = 0; this.pictureBoxOverviewVideo.TabStop = false; @@ -103,29 +105,31 @@ this.grbOverviewCamera.Controls.Add(this.pictureBoxOverviewImage); this.grbOverviewCamera.Controls.Add(this.pictureBoxOverviewVideo); this.grbOverviewCamera.Font = new System.Drawing.Font("Microsoft Sans Serif", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.grbOverviewCamera.Location = new System.Drawing.Point(15, 474); + this.grbOverviewCamera.Location = new System.Drawing.Point(9, 502); this.grbOverviewCamera.Name = "grbOverviewCamera"; - this.grbOverviewCamera.Size = new System.Drawing.Size(519, 284); + this.grbOverviewCamera.Size = new System.Drawing.Size(441, 247); this.grbOverviewCamera.TabIndex = 11; this.grbOverviewCamera.TabStop = false; - this.grbOverviewCamera.Text = "CAMERA TOÀN CẢNH"; + this.grbOverviewCamera.Text = "Camera toàn cảnh"; // // lblLaneLabel // - this.lblLaneLabel.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) - | System.Windows.Forms.AnchorStyles.Right))); this.lblLaneLabel.AutoSize = true; + this.lblLaneLabel.BackColor = System.Drawing.Color.Red; this.lblLaneLabel.Font = new System.Drawing.Font("Microsoft Sans Serif", 26.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.lblLaneLabel.Location = new System.Drawing.Point(194, 20); + this.lblLaneLabel.ForeColor = System.Drawing.SystemColors.Control; + this.lblLaneLabel.Location = new System.Drawing.Point(9, 10); this.lblLaneLabel.Name = "lblLaneLabel"; - this.lblLaneLabel.Size = new System.Drawing.Size(166, 39); + this.lblLaneLabel.Padding = new System.Windows.Forms.Padding(138, 5, 137, 5); + this.lblLaneLabel.Size = new System.Drawing.Size(441, 49); this.lblLaneLabel.TabIndex = 10; this.lblLaneLabel.Text = "LÀN VÀO"; + this.lblLaneLabel.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; // // lblCardType // this.lblCardType.AutoSize = true; - this.lblCardType.Location = new System.Drawing.Point(12, 59); + this.lblCardType.Location = new System.Drawing.Point(12, 77); this.lblCardType.Name = "lblCardType"; this.lblCardType.Size = new System.Drawing.Size(60, 18); this.lblCardType.TabIndex = 0; @@ -143,36 +147,60 @@ // grbCardInformation // this.grbCardInformation.Controls.Add(this.lblCardType); + this.grbCardInformation.Controls.Add(this.lblCardTime); + this.grbCardInformation.Controls.Add(this.lblPlateString); this.grbCardInformation.Controls.Add(this.lblCardNumber); this.grbCardInformation.Font = new System.Drawing.Font("Microsoft Sans Serif", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.grbCardInformation.Location = new System.Drawing.Point(15, 69); + this.grbCardInformation.Location = new System.Drawing.Point(9, 69); this.grbCardInformation.Name = "grbCardInformation"; - this.grbCardInformation.Size = new System.Drawing.Size(519, 91); + this.grbCardInformation.Size = new System.Drawing.Size(441, 113); this.grbCardInformation.TabIndex = 13; this.grbCardInformation.TabStop = false; - this.grbCardInformation.Text = "THÔNG TIN THẺ"; + this.grbCardInformation.Text = "Thông tin thẻ"; // - // button1 + // lblCardTime // - this.button1.Location = new System.Drawing.Point(421, 32); - this.button1.Name = "button1"; - this.button1.Size = new System.Drawing.Size(75, 23); - this.button1.TabIndex = 14; - this.button1.Text = "button1"; - this.button1.UseVisualStyleBackColor = true; - this.button1.Click += new System.EventHandler(this.button1_Click); + this.lblCardTime.AutoSize = true; + this.lblCardTime.Location = new System.Drawing.Point(218, 77); + this.lblCardTime.Name = "lblCardTime"; + this.lblCardTime.Size = new System.Drawing.Size(68, 18); + this.lblCardTime.TabIndex = 0; + this.lblCardTime.Text = "Thời gian"; + // + // lblPlateString + // + this.lblPlateString.AutoSize = true; + this.lblPlateString.Location = new System.Drawing.Point(218, 31); + this.lblPlateString.Name = "lblPlateString"; + this.lblPlateString.Size = new System.Drawing.Size(58, 18); + this.lblPlateString.TabIndex = 0; + this.lblPlateString.Text = "Biển số"; + // + // lblRecogizePlateStatus + // + this.lblRecogizePlateStatus.AutoSize = true; + this.lblRecogizePlateStatus.BackColor = System.Drawing.Color.Green; + this.lblRecogizePlateStatus.Font = new System.Drawing.Font("Microsoft Sans Serif", 18F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.lblRecogizePlateStatus.ForeColor = System.Drawing.SystemColors.Control; + this.lblRecogizePlateStatus.Location = new System.Drawing.Point(9, 197); + this.lblRecogizePlateStatus.Name = "lblRecogizePlateStatus"; + this.lblRecogizePlateStatus.Padding = new System.Windows.Forms.Padding(12, 6, 12, 6); + this.lblRecogizePlateStatus.Size = new System.Drawing.Size(441, 41); + this.lblRecogizePlateStatus.TabIndex = 15; + this.lblRecogizePlateStatus.Text = "KHÔNG NHẬN DIỆN ĐƯỢC BIỂN SỐ"; + this.lblRecogizePlateStatus.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; // // LaneIn // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; - this.Controls.Add(this.button1); + this.Controls.Add(this.lblRecogizePlateStatus); this.Controls.Add(this.grbPlateCamera); this.Controls.Add(this.grbOverviewCamera); this.Controls.Add(this.lblLaneLabel); this.Controls.Add(this.grbCardInformation); this.Name = "LaneIn"; - this.Size = new System.Drawing.Size(550, 768); + this.Size = new System.Drawing.Size(460, 764); ((System.ComponentModel.ISupportInitialize)(this.pictureBoxPlateImage)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.pictureBoxPlateVideo)).EndInit(); this.grbPlateCamera.ResumeLayout(false); @@ -187,19 +215,18 @@ } #endregion - - private System.ComponentModel.BackgroundWorker backgroundWorker2; private System.Windows.Forms.PictureBox pictureBoxPlateImage; private System.Windows.Forms.PictureBox pictureBoxPlateVideo; private System.Windows.Forms.GroupBox grbPlateCamera; private System.Windows.Forms.PictureBox pictureBoxOverviewImage; private System.Windows.Forms.PictureBox pictureBoxOverviewVideo; private System.Windows.Forms.GroupBox grbOverviewCamera; - private System.ComponentModel.BackgroundWorker backgroundWorker1; private System.Windows.Forms.Label lblLaneLabel; private System.Windows.Forms.Label lblCardType; private System.Windows.Forms.Label lblCardNumber; private System.Windows.Forms.GroupBox grbCardInformation; - private System.Windows.Forms.Button button1; + private System.Windows.Forms.Label lblPlateString; + private System.Windows.Forms.Label lblCardTime; + private System.Windows.Forms.Label lblRecogizePlateStatus; } } diff --git a/AIParkingApplication/LaneIn.cs b/AIParkingApplication/LaneIn.cs index d2b27d7..ccdc056 100644 --- a/AIParkingApplication/LaneIn.cs +++ b/AIParkingApplication/LaneIn.cs @@ -69,7 +69,7 @@ namespace AIParkingApplication })); } - private void button1_Click(object sender, EventArgs e) + private void CaptureAllCamera(object sender, EventArgs e) { this.plateCamera.RequestCaptureOneFrame(); this.overviewCamera.RequestCaptureOneFrame(); diff --git a/AIParkingApplication/LaneIn.resx b/AIParkingApplication/LaneIn.resx index 34c4d44..1af7de1 100644 --- a/AIParkingApplication/LaneIn.resx +++ b/AIParkingApplication/LaneIn.resx @@ -117,43 +117,4 @@ System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - 340, 17 - - - True - - - True - - - True - - - True - - - True - - - True - - - 504, 17 - - - True - - - True - - - True - - - True - - - True - \ No newline at end of file