recipe name filter

This commit is contained in:
meelstorm
2025-07-28 09:52:29 +02:00
parent 71d59df0cd
commit f80b275ad8
58 changed files with 4066 additions and 79 deletions

View File

@@ -49,6 +49,19 @@ public class IOCommanderCameraModule: IVisionBuilderModule
_cameraVm.StopCommand.Execute(null);
}
break;
case EGPIOCommand.Pause:
if(_cameraVm.PauseCommand.CanExecute(null))
{
_cameraVm.PauseCommand.Execute(null);
}
break;
case EGPIOCommand.Resume:
if(_cameraVm.ResumeCommand.CanExecute(null))
{
_cameraVm.ResumeCommand.Execute(null);
}
break;
default:
throw new ArgumentOutOfRangeException(nameof(command), command, null);
}

View File

@@ -1,4 +1,5 @@
using System.Collections.Concurrent;
using Serilog;
using VisionBuilder.UI.Common;
using VisionBuilder.UI.Common.Commands;
using VisionBuilder.UI.Common.RecipeProcessing;
@@ -25,8 +26,17 @@ public class IOCommanderModule:IVisionBuilderModule
public void InitializeModule()
{
_ioCommander = _factory.Create();
_ioCommander.OnPinChanged += OnPinChanged;
try
{
_ioCommander = _factory.Create();
_ioCommander.OnPinChanged += OnPinChanged;
}
catch (Exception e)
{
Log.Warning("IOCommander did non load: {e}",e);
_ioCommander= null;
}
if (_settings.ShowDebugView)_debugViewService.ShowDebugView();