protected override void CaptureEnded() { SetToolOneLocationCommand.RaiseCanExecuteChanged(); SetToolTwoLocationCommand.RaiseCanExecuteChanged(); SetTopCameraLocationCommand.RaiseCanExecuteChanged(); SetBottomCameraLocationCommand.RaiseCanExecuteChanged(); SetToolOneMovePositionCommand.RaiseCanExecuteChanged(); SetToolOnePickPositionCommand.RaiseCanExecuteChanged(); SetToolOnePlacePositionCommand.RaiseCanExecuteChanged(); }
public void SetTopCameraLocation() { if (Machine.Settings.MachineType == FirmwareTypes.LagoVista_PnP) { Machine.SendCommand("M75"); } TopCameraLocation = new Point2D <double>(Machine.MachinePosition.X, Machine.MachinePosition.Y); SetToolOneLocationCommand.RaiseCanExecuteChanged(); SetToolTwoLocationCommand.RaiseCanExecuteChanged(); }