From 98538a3fbac80bfc9bf30df994a675a6a3e2571d Mon Sep 17 00:00:00 2001 From: DucDangAnh Date: Mon, 6 Jul 2020 09:45:33 +0700 Subject: [PATCH] AIParkingApplicationForm - Remove Redundant Code. --- .../AIParkingApplicationForm.Designer.cs | 27 ------------------- .../AIParkingApplicationForm.cs | 11 -------- 2 files changed, 38 deletions(-) diff --git a/AIParkingApplication/AIParkingApplicationForm.Designer.cs b/AIParkingApplication/AIParkingApplicationForm.Designer.cs index 55aee59..7344900 100644 --- a/AIParkingApplication/AIParkingApplicationForm.Designer.cs +++ b/AIParkingApplication/AIParkingApplicationForm.Designer.cs @@ -28,37 +28,13 @@ /// private void InitializeComponent() { - this.btnStopLaneIn = new System.Windows.Forms.Button(); - this.btnStartLaneIn = new System.Windows.Forms.Button(); this.SuspendLayout(); // - // btnStopLaneIn - // - this.btnStopLaneIn.Location = new System.Drawing.Point(1205, 408); - this.btnStopLaneIn.Name = "btnStopLaneIn"; - this.btnStopLaneIn.Size = new System.Drawing.Size(75, 23); - this.btnStopLaneIn.TabIndex = 0; - this.btnStopLaneIn.Text = "Stop"; - this.btnStopLaneIn.UseVisualStyleBackColor = true; - this.btnStopLaneIn.Click += new System.EventHandler(this.btnStopLaneIn_Click); - // - // btnStartLaneIn - // - this.btnStartLaneIn.Location = new System.Drawing.Point(1205, 449); - this.btnStartLaneIn.Name = "btnStartLaneIn"; - this.btnStartLaneIn.Size = new System.Drawing.Size(75, 23); - this.btnStartLaneIn.TabIndex = 0; - this.btnStartLaneIn.Text = "Start"; - this.btnStartLaneIn.UseVisualStyleBackColor = true; - this.btnStartLaneIn.Click += new System.EventHandler(this.btnStartLaneIn_Click); - // // AIParkingApplicationForm // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.ClientSize = new System.Drawing.Size(1350, 729); - this.Controls.Add(this.btnStartLaneIn); - this.Controls.Add(this.btnStopLaneIn); this.MinimumSize = new System.Drawing.Size(1366, 768); this.Name = "AIParkingApplicationForm"; this.Text = "AIParking Application"; @@ -67,9 +43,6 @@ } #endregion - - private System.Windows.Forms.Button btnStopLaneIn; - private System.Windows.Forms.Button btnStartLaneIn; } } diff --git a/AIParkingApplication/AIParkingApplicationForm.cs b/AIParkingApplication/AIParkingApplicationForm.cs index 817201d..a960e88 100644 --- a/AIParkingApplication/AIParkingApplicationForm.cs +++ b/AIParkingApplication/AIParkingApplicationForm.cs @@ -38,21 +38,10 @@ namespace AIParkingApplication StartLanes(); } - private void btnStopLaneIn_Click(object sender, EventArgs e) - { - laneIn.Stop(); - laneOut.Stop(); - } - private void StartLanes() { laneIn.Start(); laneOut.Start(); } - - private void btnStartLaneIn_Click(object sender, EventArgs e) - { - StartLanes(); - } } }