简单的修改
This commit is contained in:
@@ -42,6 +42,11 @@ namespace FATrace.OEMApp
|
||||
InitializeComponent();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// PLC数据服务
|
||||
/// </summary>
|
||||
private PLCDataService PLCDataService { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 主窗体加载:
|
||||
/// - 初始化海康客户端与基础配置(日志目录与保存路径)
|
||||
@@ -61,6 +66,10 @@ namespace FATrace.OEMApp
|
||||
//HkCameraClient.NVR_Port = ConfigHelper.GetValue("NVRPort");
|
||||
//HkCameraClient.NVR_UserName = ConfigHelper.GetValue("NVRUserName");
|
||||
|
||||
PLCDataService = new PLCDataService();
|
||||
PLCDataService.PlcConnectedEventHandler += PLCDataService_PlcConnectedEventHandler;
|
||||
PLCDataService.ScanCodeEventHandler += PLCDataService_ScanCodeEventHandler;
|
||||
|
||||
HkCameraClient.NVRVideoSavePath = ConfigHelper.GetValue("NVRVideoSavePath");
|
||||
//NVR登录
|
||||
NVRLogin();
|
||||
@@ -109,6 +118,26 @@ namespace FATrace.OEMApp
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// PLC数据服务:扫描条码
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="Code"></param>
|
||||
private void PLCDataService_ScanCodeEventHandler(object? sender, string Code)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// PLC数据服务:PLC连接
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
private void PLCDataService_PlcConnectedEventHandler(object? sender, string e)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
private void NVRLogin()
|
||||
{
|
||||
HkCameraClient.NVR_IP = ConfigHelper.GetValue("NVRIP");
|
||||
|
||||
Reference in New Issue
Block a user