Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/sn4k3/UVtools.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'UVtools.Core/Operations/OperationLayerImport.cs')
-rw-r--r--UVtools.Core/Operations/OperationLayerImport.cs16
1 files changed, 11 insertions, 5 deletions
diff --git a/UVtools.Core/Operations/OperationLayerImport.cs b/UVtools.Core/Operations/OperationLayerImport.cs
index d22c732..be2655b 100644
--- a/UVtools.Core/Operations/OperationLayerImport.cs
+++ b/UVtools.Core/Operations/OperationLayerImport.cs
@@ -15,7 +15,6 @@ using System.Drawing;
using System.IO;
using System.Text;
using System.Threading.Tasks;
-using System.Xml.Serialization;
using UVtools.Core.Extensions;
using UVtools.Core.FileFormats;
using UVtools.Core.Layers;
@@ -85,8 +84,6 @@ public sealed class OperationLayerImport : Operation
public override uint LayerIndexEnd => _startLayerIndex + Count - 1;
- public override bool CanHaveProfiles => false;
-
public override string? ValidateInternally()
{
/*var result = new ConcurrentBag<StringTag>();
@@ -126,6 +123,16 @@ public sealed class OperationLayerImport : Operation
{
sb.AppendLine("No files to import.");
}
+ else
+ {
+ foreach (var keyValue in _files)
+ {
+ if (!File.Exists(keyValue.ValueAsString))
+ {
+ sb.AppendLine($"The file '{keyValue.ValueAsString}' does not exists.");
+ }
+ }
+ }
return sb.ToString();
}
@@ -175,7 +182,6 @@ public sealed class OperationLayerImport : Operation
set => RaiseAndSetIfChanged(ref _stackMargin, value);
}
- [XmlIgnore]
public RangeObservableCollection<ValueDescription> Files
{
get => _files;
@@ -224,7 +230,7 @@ public sealed class OperationLayerImport : Operation
public override string ToString()
{
- var result = $"[Files: {Count}]" + LayerRangeString;
+ var result = $"[{_importType}] [Start at: {_startLayerIndex}] [Files: {Count}]";
if (!string.IsNullOrEmpty(ProfileName)) result = $"{ProfileName}: {result}";
return result;
}