change - 定点巡检图像保存

master
wenjy 2 months ago
parent f98f55c6cb
commit 42fbcd5b70

@ -453,6 +453,7 @@ namespace SlnMesnac.WPF.Page
fixedPointWindow.WindowStartupLocation = WindowStartupLocation.CenterScreen; fixedPointWindow.WindowStartupLocation = WindowStartupLocation.CenterScreen;
fixedPointWindow.Topmost = true; fixedPointWindow.Topmost = true;
fixedPointWindow.ShowDialog(); fixedPointWindow.ShowDialog();
} }
} }

@ -74,6 +74,7 @@ namespace SlnMesnac.WPF.ViewModel
autoModeBusiness.CaptureAlarmPictureEvent += CapturePicture; autoModeBusiness.CaptureAlarmPictureEvent += CapturePicture;
autoModeBusiness.GimbaRotationControlEvent += GimbaRotationControl; autoModeBusiness.GimbaRotationControlEvent += GimbaRotationControl;
fixedPointBusiness.CaptureAlarmPictureEvent += CapturePicture;
fixedPointBusiness.GimbaRotationControlEvent += GimbaRotationControl; fixedPointBusiness.GimbaRotationControlEvent += GimbaRotationControl;
RefreshTrackMotorAddress(); RefreshTrackMotorAddress();
@ -246,12 +247,12 @@ namespace SlnMesnac.WPF.ViewModel
if (!CHCNetSDK.NET_DVR_CaptureJPEGPicture(m_lUserID, i, ref lpJpegPara, path)) if (!CHCNetSDK.NET_DVR_CaptureJPEGPicture(m_lUserID, i, ref lpJpegPara, path))
{ {
_log.Info("高温报警,图像信息保存失败, error code= " + NET_DVR_GetLastError()); _log.Info("图像信息保存失败, error code= " + NET_DVR_GetLastError());
return; return;
} }
else else
{ {
_log.Info("高温报警,图像信息保存成功: " + path); _log.Info("图像信息保存成功: " + path);
} }
} }
} }

Loading…
Cancel
Save