|
|
@@ -1179,6 +1179,13 @@ namespace TeamAAS_VP.ViewModels.Product
|
|
|
{
|
|
|
try
|
|
|
{
|
|
|
+ if (Camera != null)
|
|
|
+ {
|
|
|
+ if (Camera.IsGrabbing)
|
|
|
+ {
|
|
|
+ ExecuteStopGrabbingCommand();
|
|
|
+ }
|
|
|
+ }
|
|
|
//弹窗提示用户是否确认要通过相机自动矫正锁附点位
|
|
|
var resultConfirm = MessageBox.Show("确认要通过相机自动矫正锁附点位吗?", "确认", MessageBoxButton.YesNo, MessageBoxImage.Question);
|
|
|
if (resultConfirm != MessageBoxResult.Yes)
|
|
|
@@ -1224,6 +1231,7 @@ namespace TeamAAS_VP.ViewModels.Product
|
|
|
|
|
|
IDialogParameters parameters = new DialogParameters();
|
|
|
parameters.Add("Robot", Robot);
|
|
|
+ parameters.Add("SelectProduct", SelectProduct);
|
|
|
parameters.Add("Points", new List<PlcPoint>(SelectProduct.ScrewPoints.ToArray()));
|
|
|
_dialogService.Show("AutoCorrectLockPoint", parameters, rst =>
|
|
|
{
|
|
|
@@ -1266,6 +1274,13 @@ namespace TeamAAS_VP.ViewModels.Product
|
|
|
Task<object> task;
|
|
|
try
|
|
|
{
|
|
|
+ if (Camera != null)
|
|
|
+ {
|
|
|
+ if (Camera.IsGrabbing)
|
|
|
+ {
|
|
|
+ ExecuteStopGrabbingCommand();
|
|
|
+ }
|
|
|
+ }
|
|
|
if (Robot == null || !Robot.IsConnected) return;
|
|
|
//弹窗提示用户是否确认要通过相机自动矫正锁附点位并执行该点位
|
|
|
var resultConfirm = MessageBox.Show($"确认要通过相机自动矫正锁附点位并执行点位 {point.Number} 吗?", "确认", MessageBoxButton.YesNo, MessageBoxImage.Question);
|