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.WPF/Structures/PEProfileFolder.cs')
-rw-r--r--UVtools.WPF/Structures/PEProfileFolder.cs6
1 files changed, 3 insertions, 3 deletions
diff --git a/UVtools.WPF/Structures/PEProfileFolder.cs b/UVtools.WPF/Structures/PEProfileFolder.cs
index d0ce382..2c6a410 100644
--- a/UVtools.WPF/Structures/PEProfileFolder.cs
+++ b/UVtools.WPF/Structures/PEProfileFolder.cs
@@ -49,7 +49,7 @@ namespace UVtools.WPF.Structures
{
get
{
- StringBuilder sb = new StringBuilder();
+ StringBuilder sb = new();
foreach (CheckBox item in Items)
{
if (!item.IsChecked.HasValue || !item.IsChecked.Value) continue;
@@ -87,7 +87,7 @@ namespace UVtools.WPF.Structures
Updates = 0;
Installed = 0;
if (!Directory.Exists(SourcePath)) return;
- DirectoryInfo di = new DirectoryInfo(SourcePath);
+ DirectoryInfo di = new(SourcePath);
var files = di.GetFiles("*.ini");
if (files.Length == 0) return;
@@ -104,7 +104,7 @@ namespace UVtools.WPF.Structures
if (folderExists)
{
var targetFile = $"{TargetPath}{Path.DirectorySeparatorChar}{files[i].Name}";
- FileInfo targetFileInfo = new FileInfo(targetFile);
+ FileInfo targetFileInfo = new(targetFile);
if (targetFileInfo.Exists)
{
Installed++;