AIParkingApplicationForm - Add StartLanes()

This commit is contained in:
DucDangAnh 2020-07-01 09:26:27 +07:00
parent 5c6775c6d4
commit 3913dd41e7

View File

@ -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();
}
}
}