1.0.5
This commit is contained in:
@@ -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))]
|
||||
|
||||
Reference in New Issue
Block a user