2.0.8
This commit is contained in:
@@ -14,6 +14,9 @@ public class ErrorsVM:IEventHandler<ImageProcessedEvent>, IEventHandler<SessionS
|
||||
private readonly ILearningTool _learningTool;
|
||||
private readonly IPasswordInputService _passwordInputService;
|
||||
|
||||
private const string DATE_FORMAT = "dd.MM.yyyy";
|
||||
private const string TIME_FORMAT = "HH:mm:ss";
|
||||
|
||||
public ErrorsVM(UIConfiguration uiConfiguration, IImagePreviewService imagePreviewService, ILearningTool learningTool, IPasswordInputService passwordInputService)
|
||||
{
|
||||
_uiConfiguration = uiConfiguration;
|
||||
@@ -56,7 +59,7 @@ public class ErrorsVM:IEventHandler<ImageProcessedEvent>, IEventHandler<SessionS
|
||||
RecipeName = @event.RecipeName,
|
||||
ImageOriginal = @event.ImageOriginal,
|
||||
ImageAnalysis = @event.ImageAnalysis,
|
||||
Title =DateTime.Now.ToString("G")+ additionalInfo
|
||||
Title =DateTime.Now.ToString(DATE_FORMAT)+" "+ DateTime.Now.ToString(TIME_FORMAT) + additionalInfo
|
||||
};
|
||||
|
||||
if (Errors.Count >= _uiConfiguration.MaxErrorCount)
|
||||
|
||||
@@ -46,6 +46,14 @@ public partial class MainWindowVM:ObservableObject
|
||||
|
||||
public void OnProgramClosed()
|
||||
{
|
||||
foreach (var singleCameraVm in SingleCameraVms)
|
||||
{
|
||||
if (singleCameraVm.IsRunning)
|
||||
{
|
||||
singleCameraVm.StopCommand.Execute(null);
|
||||
|
||||
}
|
||||
}
|
||||
ProgramClosed?.Invoke();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user