Formatting

This commit is contained in:
Marco 2025-07-29 11:10:54 +02:00
commit a466efbb27
3 changed files with 22 additions and 21 deletions

View file

@ -15,7 +15,10 @@ using Microsoft.Extensions.Logging;
namespace MaddoShared namespace MaddoShared
{ {
[SuppressMessage("Interoperability", "CA1416:Validate platform compatibility")] [SuppressMessage("Interoperability", "CA1416:Validate platform compatibility")]
public class ImageCreationStuff(ILogger<ImageCreationStuff> logger, PicSettings picSettings, ImageCreatorSharp imageCreatorService) public class ImageCreationStuff(
ILogger<ImageCreationStuff> logger,
PicSettings picSettings,
ImageCreatorSharp imageCreatorService)
{ {
public class Options public class Options
{ {
@ -132,7 +135,6 @@ namespace MaddoShared
{ {
logger.LogError(e, "Error in disposing the logo"); logger.LogError(e, "Error in disposing the logo");
} }
} }
private List<FileData> GetFilesToProcess(Options options) private List<FileData> GetFilesToProcess(Options options)

View file

@ -14,7 +14,6 @@ namespace ImageCatalog_2
{ {
public class DataModel : ViewModelBase public class DataModel : ViewModelBase
{ {
public ICommand TestCommand { get; } public ICommand TestCommand { get; }
public ICommand AsyncTestCommand { get; } public ICommand AsyncTestCommand { get; }
@ -23,7 +22,8 @@ namespace ImageCatalog_2
public ICommand ProcessImagesCommand { get; } public ICommand ProcessImagesCommand { get; }
private readonly ITestService _service; private readonly ITestService _service;
private readonly ILogger<DataModel> _logger; private readonly ILogger<DataModel> _logger;
public DataModel(ITestService testService, ILogger<DataModel> logger) public DataModel(ITestService testService, ILogger<DataModel> logger)
{ {
_service = testService; _service = testService;
@ -61,6 +61,7 @@ namespace ImageCatalog_2
} }
private string _destinationPath; private string _destinationPath;
public string DestinationPath public string DestinationPath
{ {
get => _destinationPath; get => _destinationPath;
@ -84,6 +85,7 @@ namespace ImageCatalog_2
} }
private string _verticalText; private string _verticalText;
public string VerticalText public string VerticalText
{ {
get => _verticalText; get => _verticalText;
@ -145,7 +147,6 @@ namespace ImageCatalog_2
private async Task ProcessImages() private async Task ProcessImages()
{ {
} }
private async Task CancelOperation() private async Task CancelOperation()
@ -162,6 +163,5 @@ namespace ImageCatalog_2
_logger.LogInformation("Ignora questo errore"); _logger.LogInformation("Ignora questo errore");
} }
} }
} }
} }

View file

@ -896,8 +896,7 @@ public partial class MainForm
{ {
_logger.LogInformation("Avvio elaborazione..."); _logger.LogInformation("Avvio elaborazione...");
lockUI(); lockUI();
// Dim timeStart As Date
// Dim timeStop As Date
Model.MainToken?.Dispose(); Model.MainToken?.Dispose();
Model.MainToken = new CancellationTokenSource(); Model.MainToken = new CancellationTokenSource();
var token = Model.MainToken.Token; var token = Model.MainToken.Token;