feat: SeparatorCalibration View and ViewModel

This commit is contained in:
2026-04-14 16:18:13 +03:00
parent bb930aac88
commit 7a42ff5f3c
11 changed files with 1106 additions and 27 deletions
+5 -3
View File
@@ -3,12 +3,13 @@ using System.CommandLine;
using Microsoft.EntityFrameworkCore;
using Microsoft.Extensions.Hosting;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Configuration;
using Avalonia;
using Avalonia.OpenGL.Egl;
using GSS2.Core.Logging;
using GSS2.Core;
using GSS2.Core.Logging;
using GSS2.Core.Analysis.AmineContent.Database.Calibration;
using GSS2.Core.Analysis.AmineContent.Database.Results;
@@ -157,7 +158,8 @@ public static class UI
builder.Services.AddIlluminatorService("Hardware:Illuminator");
builder.Services.AddCameraService("Hardware:Camera", true);
builder.Services.AddComputeResourcesService();
builder.Services.AddImageStorageService(new DirectoryInfo("images"));
builder.Services.AddImageStorageService(new DirectoryInfo(builder.Configuration.GetValue<string>("ImageStorage") ?? "images"));
builder.Services.AddAmineContentImageCapturerService();
// Добавляем элементы интерфейса как сервисы
builder.Services.AddViewsAndModels();
@@ -191,7 +193,7 @@ public static class UI
.LogToTrace()
.With(new X11PlatformOptions
{
RenderingMode = [X11RenderingMode.Egl]
RenderingMode = [X11RenderingMode.Egl],
})
.With(new EglDisplayOptions
{