This commit is contained in:
meelstorm
2025-09-29 09:31:57 +02:00
parent 87c1145744
commit 1aecb79ade
16 changed files with 110 additions and 16 deletions

View File

@@ -123,19 +123,29 @@ namespace VisionBuilder.UI.Common
}
[RelayCommand(CanExecute = nameof(CanStart))]
public void Start()
public async Task Start()
{
_handlingEnabled = true;
_recognitionControl.Start();
IsRunning = true;
await Task.Run(() =>
{
_recognitionControl.Start();
});
_handlingEnabled = true;
}
[RelayCommand(CanExecute = nameof(CanStop))]
public void Stop()
public async Task Stop()
{
_handlingEnabled = false;
_recognitionControl.Stop();
await Task.Run(() =>
{
_recognitionControl.Stop();
});
IsPaused = false;
IsRunning = false;
}
[RelayCommand(CanExecute = nameof(IsResumed))]