LaneOut - Add FormLoad Event.
This commit is contained in:
parent
a00d77133f
commit
cc6df6ac2b
1
AIParkingApplication/LaneOut.Designer.cs
generated
1
AIParkingApplication/LaneOut.Designer.cs
generated
|
@ -267,6 +267,7 @@
|
||||||
this.Controls.Add(this.grbPlateRefernce);
|
this.Controls.Add(this.grbPlateRefernce);
|
||||||
this.Name = "LaneOut";
|
this.Name = "LaneOut";
|
||||||
this.Size = new System.Drawing.Size(680, 692);
|
this.Size = new System.Drawing.Size(680, 692);
|
||||||
|
this.Load += new System.EventHandler(this.LaneOut_Load);
|
||||||
this.grbPlateRefernce.ResumeLayout(false);
|
this.grbPlateRefernce.ResumeLayout(false);
|
||||||
((System.ComponentModel.ISupportInitialize)(this.pictureBoxOverviewImageIn)).EndInit();
|
((System.ComponentModel.ISupportInitialize)(this.pictureBoxOverviewImageIn)).EndInit();
|
||||||
((System.ComponentModel.ISupportInitialize)(this.pictureBoxPlateImageIn)).EndInit();
|
((System.ComponentModel.ISupportInitialize)(this.pictureBoxPlateImageIn)).EndInit();
|
||||||
|
|
|
@ -43,15 +43,7 @@ namespace AIParkingApplication
|
||||||
plateCamera = new Camera(plateStream);
|
plateCamera = new Camera(plateStream);
|
||||||
this.apiController = apiController;
|
this.apiController = apiController;
|
||||||
this.doorControlAccess = doorControlAccess;
|
this.doorControlAccess = doorControlAccess;
|
||||||
this.doorControlAccess.OnNewCardReceived += C3Device_OnNewCardReceived;
|
|
||||||
printer = new Printer();
|
printer = new Printer();
|
||||||
|
|
||||||
plateCamera.OnVideoFrameReceived += PlateCameraOnVideoFrameReceived;
|
|
||||||
plateCamera.OnOpenVideoStreamFailed += PlateCamera_OnOpenVideoStreamFailed;
|
|
||||||
|
|
||||||
overviewCamera.OnVideoFrameReceived += OverviewCameraOnVideoFrameReceived;
|
|
||||||
overviewCamera.OnOpenVideoStreamFailed += OverviewCamera_OnOpenVideoStreamFailed;
|
|
||||||
|
|
||||||
plateProcessor = new PlateProcessor(engineApiController, this.isSupportSquarePlate, this.isSupportLongPlate);
|
plateProcessor = new PlateProcessor(engineApiController, this.isSupportSquarePlate, this.isSupportLongPlate);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -244,9 +236,9 @@ namespace AIParkingApplication
|
||||||
|
|
||||||
private void ConnectToDoorAccessControl()
|
private void ConnectToDoorAccessControl()
|
||||||
{
|
{
|
||||||
if (!this.doorControlAccess.Connect().HasError)
|
if (!doorControlAccess.Connect().HasError)
|
||||||
{
|
{
|
||||||
_ = this.doorControlAccess.GetLogToReceiveNewCard();
|
_ = doorControlAccess.GetLogToReceiveNewCard();
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
@ -258,5 +250,15 @@ namespace AIParkingApplication
|
||||||
{
|
{
|
||||||
ConnectToDoorAccessControl();
|
ConnectToDoorAccessControl();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private void LaneOut_Load(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
doorControlAccess.OnNewCardReceived += C3Device_OnNewCardReceived;
|
||||||
|
plateCamera.OnVideoFrameReceived += PlateCameraOnVideoFrameReceived;
|
||||||
|
plateCamera.OnOpenVideoStreamFailed += PlateCamera_OnOpenVideoStreamFailed;
|
||||||
|
|
||||||
|
overviewCamera.OnVideoFrameReceived += OverviewCameraOnVideoFrameReceived;
|
||||||
|
overviewCamera.OnOpenVideoStreamFailed += OverviewCamera_OnOpenVideoStreamFailed;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user