AIParkingApplicationForm - Remove Redundant Code.
This commit is contained in:
parent
3d08edea71
commit
98538a3fba
|
@ -28,37 +28,13 @@
|
|||
/// </summary>
|
||||
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;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user