forked from amkovkov/GranuSightSoftware2
feat: massive rework
1) GSS2.Core: - strip prefixes in GSS2.Core.Analysis.AmineContent namespace class names - add IEnumerable<double>.Variance extension - remake analysis + update database so not needed to store all every file, calibration data also stored in database, also currently capturing images stored in system temporary directory and rewriting every time 2) GSS.UI.Core: AsyncImageRecordViewModel make zoom and pans public 3) GSS: - remove image-storage-clear command - remove ResultsView and ResultsViewModel, results presented in analysis - rework calibration views - add analysis views - add text and number fields editors view - add confirmation view on danger buttons
This commit is contained in:
+4
-2
@@ -12,6 +12,7 @@ using GSS2.Core;
|
||||
using GSS2.Core.Logging;
|
||||
using GSS2.Core.Analysis.AmineContent.Database.Calibration;
|
||||
using GSS2.Core.Analysis.AmineContent.Database.Results;
|
||||
using GSS2.Core.Hardware;
|
||||
|
||||
namespace GSS2.Commands;
|
||||
|
||||
@@ -160,6 +161,7 @@ public static class UI
|
||||
builder.Services.AddComputeResourcesService();
|
||||
builder.Services.AddImageStorageService(new DirectoryInfo(builder.Configuration.GetValue<string>("ImageStorage") ?? "images"));
|
||||
builder.Services.AddAmineContentImageCapturerService();
|
||||
builder.Services.AddAmineContentAnalyzerService();
|
||||
|
||||
// Добавляем элементы интерфейса как сервисы
|
||||
builder.Services.AddViewsAndModels();
|
||||
@@ -174,12 +176,12 @@ public static class UI
|
||||
// Применяем миграции баз данных если их схема данных изменялась
|
||||
using (var scope = host.Services.CreateScope())
|
||||
{
|
||||
var context = scope.ServiceProvider.GetRequiredService<AmineContentCalibrationContext>();
|
||||
var context = scope.ServiceProvider.GetRequiredService<CalibrationContext>();
|
||||
context.Database.Migrate();
|
||||
}
|
||||
using (var scope = host.Services.CreateScope())
|
||||
{
|
||||
var context = scope.ServiceProvider.GetRequiredService<AmineContentResultsContext>();
|
||||
var context = scope.ServiceProvider.GetRequiredService<ResultsContext>();
|
||||
context.Database.Migrate();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user