Formatting
This commit is contained in:
parent
80fcaa6fd0
commit
a466efbb27
3 changed files with 22 additions and 21 deletions
|
|
@ -14,16 +14,16 @@ namespace ImageCatalog_2
|
|||
{
|
||||
public class DataModel : ViewModelBase
|
||||
{
|
||||
|
||||
public ICommand TestCommand { get; }
|
||||
|
||||
public ICommand AsyncTestCommand { get; }
|
||||
public ICommand AsyncCancelOperationCommand { get; }
|
||||
|
||||
|
||||
public ICommand ProcessImagesCommand { get; }
|
||||
|
||||
private readonly ITestService _service;
|
||||
private readonly ILogger<DataModel> _logger;
|
||||
private readonly ILogger<DataModel> _logger;
|
||||
|
||||
public DataModel(ITestService testService, ILogger<DataModel> logger)
|
||||
{
|
||||
_service = testService;
|
||||
|
|
@ -32,7 +32,7 @@ namespace ImageCatalog_2
|
|||
TestCommand = new RelayCommand(Test);
|
||||
AsyncTestCommand = new AsyncCommand(TestAsync);
|
||||
AsyncCancelOperationCommand = new AsyncCommand(CancelOperation);
|
||||
|
||||
|
||||
ProcessImagesCommand = new AsyncCommand(ProcessImages);
|
||||
}
|
||||
|
||||
|
|
@ -61,6 +61,7 @@ namespace ImageCatalog_2
|
|||
}
|
||||
|
||||
private string _destinationPath;
|
||||
|
||||
public string DestinationPath
|
||||
{
|
||||
get => _destinationPath;
|
||||
|
|
@ -82,8 +83,9 @@ namespace ImageCatalog_2
|
|||
NotifyPropertyChanged();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
private string _verticalText;
|
||||
|
||||
public string VerticalText
|
||||
{
|
||||
get => _verticalText;
|
||||
|
|
@ -117,7 +119,7 @@ namespace ImageCatalog_2
|
|||
NotifyPropertyChanged();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
public bool UiDisabled => !_uiEnabled;
|
||||
|
||||
private string _speedCounter = "-";
|
||||
|
|
@ -145,7 +147,6 @@ namespace ImageCatalog_2
|
|||
|
||||
private async Task ProcessImages()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
private async Task CancelOperation()
|
||||
|
|
@ -162,6 +163,5 @@ namespace ImageCatalog_2
|
|||
_logger.LogInformation("Ignora questo errore");
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -113,7 +113,7 @@ public partial class MainForm
|
|||
SetText(Label10, args.Item1);
|
||||
SetText(lblFotoTotaliNum, args.Item2.ToString());
|
||||
}
|
||||
|
||||
|
||||
private bool WaterSelectColor = false;
|
||||
|
||||
// Private ContaFotoCuori As Integer
|
||||
|
|
@ -896,8 +896,7 @@ public partial class MainForm
|
|||
{
|
||||
_logger.LogInformation("Avvio elaborazione...");
|
||||
lockUI();
|
||||
// Dim timeStart As Date
|
||||
// Dim timeStop As Date
|
||||
|
||||
Model.MainToken?.Dispose();
|
||||
Model.MainToken = new CancellationTokenSource();
|
||||
var token = Model.MainToken.Token;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue