diff --git a/AIParkingApplication/AIParkingApplicationForm.cs b/AIParkingApplication/AIParkingApplicationForm.cs index 028dd99..8cfcb68 100644 --- a/AIParkingApplication/AIParkingApplicationForm.cs +++ b/AIParkingApplication/AIParkingApplicationForm.cs @@ -22,6 +22,8 @@ namespace AIParkingApplication laneOut = new LaneOut(2, @"C:\HS_test.mp4", @"C:\HS_test.mp4", c3Device, apiController, true, false, true); laneOut.Location = new System.Drawing.Point(450, 0); Controls.Add(laneOut); + + StartLanes(); } private void btnStopLaneIn_Click(object sender, System.EventArgs e) @@ -30,10 +32,15 @@ namespace AIParkingApplication laneOut.Stop(); } - private void btnStartLaneIn_Click(object sender, System.EventArgs e) + private void StartLanes() { laneIn.Start(); laneOut.Start(); } + + private void btnStartLaneIn_Click(object sender, System.EventArgs e) + { + StartLanes(); + } } }