Skip to content

Commit

Permalink
Update 1.0.0.4
Browse files Browse the repository at this point in the history
  • Loading branch information
Andy16823 committed May 8, 2024
1 parent d0235fa commit a912ee8
Show file tree
Hide file tree
Showing 87 changed files with 425 additions and 22 deletions.
Binary file modified Source/.vs/ProjectEvaluation/sbwpf.metadata.v7.bin
Binary file not shown.
Binary file modified Source/.vs/ProjectEvaluation/sbwpf.projects.v7.bin
Binary file not shown.
Binary file modified Source/.vs/SBWPF/DesignTimeBuild/.dtbcache.v2
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified Source/.vs/SBWPF/v17/.futdcache.v2
Binary file not shown.
Binary file modified Source/.vs/SBWPF/v17/.suo
Binary file not shown.
47 changes: 45 additions & 2 deletions Source/SBWPF/BackupPlanWindow.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ private void addFolderButton_Click(object sender, RoutedEventArgs e)
var folderInfo = new FileInfo(openFolderDialog.FolderName);

var backupSource = new BackupSource();
backupSource.Name = folderInfo.Name;
backupSource.Name = GetSourceFolderName(folderInfo.Name, m_backupSources.ToList());
backupSource.Path = openFolderDialog.FolderName;
backupSource.Type = Backuper.Type.Directory;

Expand All @@ -76,7 +76,7 @@ private void addFileButton_Click(object sender, RoutedEventArgs e)
var folderInfo = new FileInfo(openFileDialog.FileName);

var backupSource = new BackupSource();
backupSource.Name = folderInfo.Name;
backupSource.Name = GetSourceFileName(System.IO.Path.GetFileNameWithoutExtension(openFileDialog.FileName), System.IO.Path.GetExtension(openFileDialog.FileName), m_backupSources.ToList());
backupSource.Path = openFileDialog.FileName;
backupSource.Type = Backuper.Type.File;

Expand Down Expand Up @@ -109,6 +109,49 @@ private void createPlanButton_Click(object sender, RoutedEventArgs e)
this.Close();
}

private static String GetSourceFolderName(String oldName, List<BackupSource> backupSources)
{
if(IsDuplicate(oldName, backupSources))
{
var i = 1;
string fileName = $"{oldName}_{i}";
while (IsDuplicate(fileName, backupSources))
{
i++;
fileName = $"{oldName}_{i}";
}
return fileName;
}
return oldName;
}

private static String GetSourceFileName(String oldName, String extension, List<BackupSource> backupSources)
{
if (IsDuplicate(oldName + extension, backupSources))
{
var i = 1;
string fileName = $"{oldName}_{i}{extension}";
while (IsDuplicate(fileName, backupSources))
{
i++;
fileName = $"{oldName}_{i}{extension}";
}
return fileName;
}
return oldName + extension;
}

private static bool IsDuplicate(String name, List<BackupSource> backupSources)
{
foreach (var item in backupSources)
{
if(item.Name.Equals(name))
{
return true;
}
}
return false;
}

}
}
2 changes: 1 addition & 1 deletion Source/SBWPF/SBWPF.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@

<ItemGroup>
<Reference Include="Backuper">
<HintPath>..\..\Backuper\Backuper\bin\Debug\net8.0\Backuper.dll</HintPath>
<HintPath>..\..\Backuper\Backuper\bin\Release\net8.0\Backuper.dll</HintPath>
</Reference>
</ItemGroup>

Expand Down
Binary file modified Source/SBWPF/bin/Debug/net8.0-windows/Backuper.dll
Binary file not shown.
Binary file modified Source/SBWPF/bin/Debug/net8.0-windows/Backuper.pdb
Binary file not shown.
Binary file modified Source/SBWPF/bin/Debug/net8.0-windows/SBWPF.dll
Binary file not shown.
Binary file modified Source/SBWPF/bin/Debug/net8.0-windows/SBWPF.pdb
Binary file not shown.
Binary file modified Source/SBWPF/bin/Release/net8.0-windows/Backuper.dll
Binary file not shown.
Binary file modified Source/SBWPF/bin/Release/net8.0-windows/Backuper.pdb
Binary file not shown.
Binary file modified Source/SBWPF/bin/Release/net8.0-windows/SBWPF.dll
Binary file not shown.
Binary file modified Source/SBWPF/bin/Release/net8.0-windows/SBWPF.pdb
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -1 +1 @@
7304f00bcc6ff981953a9c240d6a8cb9aacb3286086720c60a8c566acd060848
7764bcb8b546307aa64acd37ab2ae91cea372c70d3efbf372815752ba05d4cc9
Binary file modified Source/SBWPF/obj/Debug/net8.0-windows/SBWPF.dll
Binary file not shown.
Binary file modified Source/SBWPF/obj/Debug/net8.0-windows/SBWPF.pdb
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
//------------------------------------------------------------------------------
// <auto-generated>
// Dieser Code wurde von einem Tool generiert.
// Laufzeitversion:4.0.30319.42000
//
// Änderungen an dieser Datei können falsches Verhalten verursachen und gehen verloren, wenn
// der Code erneut generiert wird.
// </auto-generated>
//------------------------------------------------------------------------------

using System;
using System.Reflection;

[assembly: System.Reflection.AssemblyCompanyAttribute("SBWPF")]
[assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")]
[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")]
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0")]
[assembly: System.Reflection.AssemblyProductAttribute("SBWPF")]
[assembly: System.Reflection.AssemblyTitleAttribute("SBWPF")]
[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")]
[assembly: System.Runtime.Versioning.TargetPlatformAttribute("Windows7.0")]
[assembly: System.Runtime.Versioning.SupportedOSPlatformAttribute("Windows7.0")]

// Von der MSBuild WriteCodeFragment-Klasse generiert.

Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
a31238605d3a29ce482c1384edcfc032d487adaa518a5dc58cb04092564d48e0
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
is_global = true
build_property.TargetFramework = net8.0-windows
build_property.TargetPlatformMinVersion = 7.0
build_property.UsingMicrosoftNETSdkWeb =
build_property.ProjectTypeGuids =
build_property.InvariantGlobalization =
build_property.PlatformNeutralAssembly =
build_property.EnforceExtendedAnalyzerRules =
build_property._SupportedPlatformList = Linux,macOS,Windows
build_property.RootNamespace = SBWPF_0yehgpfd_wpftmp
build_property.ProjectDir = C:\Users\andy1\source\repos\SBWPF\SBWPF\
build_property.EnableComHosting =
build_property.EnableGeneratedComInterfaceComImportInterop =
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
// <auto-generated/>
global using global::System;
global using global::System.Collections.Generic;
global using global::System.Linq;
global using global::System.Threading;
global using global::System.Threading.Tasks;
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
//------------------------------------------------------------------------------
// <auto-generated>
// Dieser Code wurde von einem Tool generiert.
// Laufzeitversion:4.0.30319.42000
//
// Änderungen an dieser Datei können falsches Verhalten verursachen und gehen verloren, wenn
// der Code erneut generiert wird.
// </auto-generated>
//------------------------------------------------------------------------------

using System;
using System.Reflection;

[assembly: System.Reflection.AssemblyCompanyAttribute("SBWPF")]
[assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")]
[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")]
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0")]
[assembly: System.Reflection.AssemblyProductAttribute("SBWPF")]
[assembly: System.Reflection.AssemblyTitleAttribute("SBWPF")]
[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")]
[assembly: System.Runtime.Versioning.TargetPlatformAttribute("Windows7.0")]
[assembly: System.Runtime.Versioning.SupportedOSPlatformAttribute("Windows7.0")]

// Von der MSBuild WriteCodeFragment-Klasse generiert.

Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
a31238605d3a29ce482c1384edcfc032d487adaa518a5dc58cb04092564d48e0
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
is_global = true
build_property.TargetFramework = net8.0-windows
build_property.TargetPlatformMinVersion = 7.0
build_property.UsingMicrosoftNETSdkWeb =
build_property.ProjectTypeGuids =
build_property.InvariantGlobalization =
build_property.PlatformNeutralAssembly =
build_property.EnforceExtendedAnalyzerRules =
build_property._SupportedPlatformList = Linux,macOS,Windows
build_property.RootNamespace = SBWPF_5taha24j_wpftmp
build_property.ProjectDir = C:\Users\andy1\source\repos\SBWPF\SBWPF\
build_property.EnableComHosting =
build_property.EnableGeneratedComInterfaceComImportInterop =
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
// <auto-generated/>
global using global::System;
global using global::System.Collections.Generic;
global using global::System.Linq;
global using global::System.Threading;
global using global::System.Threading.Tasks;
Binary file not shown.
Empty file.
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ C:\Users\andy1\source\repos\SBWPF\SBWPF\App.xaml
191384786802

22-1398533354
2101689962709
210464309183
AboutDialog.xaml;BackupPlanWindow.xaml;ExportSecuredDialog.xaml;ImportSecruredDialog.xaml;MainWindow.xaml;RestoreBackupDialog.xaml;Styles\CustomStyles.xaml;Themes\ColourDictionaries\DarkGreyTheme.xaml;Themes\ColourDictionaries\DeepDark.xaml;Themes\ColourDictionaries\GreyTheme.xaml;Themes\ColourDictionaries\LightTheme.xaml;Themes\ColourDictionaries\RedBlackTheme.xaml;Themes\ColourDictionaries\SoftDark.xaml;Themes\ColourfulDarkTheme.xaml;Themes\ColourfulLightTheme.xaml;Themes\ControlColours.xaml;Themes\Controls.xaml;Themes\DarkTheme.xaml;Themes\LightTheme.xaml;

False
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ C:\Users\andy1\source\repos\SBWPF\SBWPF\App.xaml
191384786802

241865189958
2101689962709
210464309183
AboutDialog.xaml;BackupPlanWindow.xaml;ExportSecuredDialog.xaml;ImportSecruredDialog.xaml;MainWindow.xaml;RestoreBackupDialog.xaml;Styles\CustomStyles.xaml;Themes\ColourDictionaries\DarkGreyTheme.xaml;Themes\ColourDictionaries\DeepDark.xaml;Themes\ColourDictionaries\GreyTheme.xaml;Themes\ColourDictionaries\LightTheme.xaml;Themes\ColourDictionaries\RedBlackTheme.xaml;Themes\ColourDictionaries\SoftDark.xaml;Themes\ColourfulDarkTheme.xaml;Themes\ColourfulLightTheme.xaml;Themes\ControlColours.xaml;Themes\Controls.xaml;Themes\DarkTheme.xaml;Themes\LightTheme.xaml;

True
False

Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
//------------------------------------------------------------------------------
// <auto-generated>
// Dieser Code wurde von einem Tool generiert.
// Laufzeitversion:4.0.30319.42000
//
// Änderungen an dieser Datei können falsches Verhalten verursachen und gehen verloren, wenn
// der Code erneut generiert wird.
// </auto-generated>
//------------------------------------------------------------------------------

using System;
using System.Reflection;

[assembly: System.Reflection.AssemblyCompanyAttribute("SBWPF")]
[assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")]
[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")]
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0")]
[assembly: System.Reflection.AssemblyProductAttribute("SBWPF")]
[assembly: System.Reflection.AssemblyTitleAttribute("SBWPF")]
[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")]
[assembly: System.Runtime.Versioning.TargetPlatformAttribute("Windows7.0")]
[assembly: System.Runtime.Versioning.SupportedOSPlatformAttribute("Windows7.0")]

// Von der MSBuild WriteCodeFragment-Klasse generiert.

Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
a31238605d3a29ce482c1384edcfc032d487adaa518a5dc58cb04092564d48e0
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
is_global = true
build_property.TargetFramework = net8.0-windows
build_property.TargetPlatformMinVersion = 7.0
build_property.UsingMicrosoftNETSdkWeb =
build_property.ProjectTypeGuids =
build_property.InvariantGlobalization =
build_property.PlatformNeutralAssembly =
build_property.EnforceExtendedAnalyzerRules =
build_property._SupportedPlatformList = Linux,macOS,Windows
build_property.RootNamespace = SBWPF_dn4fa0lk_wpftmp
build_property.ProjectDir = C:\Users\andy1\source\repos\SBWPF\SBWPF\
build_property.EnableComHosting =
build_property.EnableGeneratedComInterfaceComImportInterop =
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
// <auto-generated/>
global using global::System;
global using global::System.Collections.Generic;
global using global::System.Linq;
global using global::System.Threading;
global using global::System.Threading.Tasks;
Binary file not shown.
Empty file.
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
//------------------------------------------------------------------------------
// <auto-generated>
// Dieser Code wurde von einem Tool generiert.
// Laufzeitversion:4.0.30319.42000
//
// Änderungen an dieser Datei können falsches Verhalten verursachen und gehen verloren, wenn
// der Code erneut generiert wird.
// </auto-generated>
//------------------------------------------------------------------------------

using System;
using System.Reflection;

[assembly: System.Reflection.AssemblyCompanyAttribute("SBWPF")]
[assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")]
[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")]
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0")]
[assembly: System.Reflection.AssemblyProductAttribute("SBWPF")]
[assembly: System.Reflection.AssemblyTitleAttribute("SBWPF")]
[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")]
[assembly: System.Runtime.Versioning.TargetPlatformAttribute("Windows7.0")]
[assembly: System.Runtime.Versioning.SupportedOSPlatformAttribute("Windows7.0")]

// Von der MSBuild WriteCodeFragment-Klasse generiert.

Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
a31238605d3a29ce482c1384edcfc032d487adaa518a5dc58cb04092564d48e0
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
is_global = true
build_property.TargetFramework = net8.0-windows
build_property.TargetPlatformMinVersion = 7.0
build_property.UsingMicrosoftNETSdkWeb =
build_property.ProjectTypeGuids =
build_property.InvariantGlobalization =
build_property.PlatformNeutralAssembly =
build_property.EnforceExtendedAnalyzerRules =
build_property._SupportedPlatformList = Linux,macOS,Windows
build_property.RootNamespace = SBWPF_menshksy_wpftmp
build_property.ProjectDir = C:\Users\andy1\source\repos\SBWPF\SBWPF\
build_property.EnableComHosting =
build_property.EnableGeneratedComInterfaceComImportInterop =
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
// <auto-generated/>
global using global::System;
global using global::System.Collections.Generic;
global using global::System.Linq;
global using global::System.Threading;
global using global::System.Threading.Tasks;
Binary file not shown.
Empty file.
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
//------------------------------------------------------------------------------
// <auto-generated>
// Dieser Code wurde von einem Tool generiert.
// Laufzeitversion:4.0.30319.42000
//
// Änderungen an dieser Datei können falsches Verhalten verursachen und gehen verloren, wenn
// der Code erneut generiert wird.
// </auto-generated>
//------------------------------------------------------------------------------

using System;
using System.Reflection;

[assembly: System.Reflection.AssemblyCompanyAttribute("SBWPF")]
[assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")]
[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")]
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0")]
[assembly: System.Reflection.AssemblyProductAttribute("SBWPF")]
[assembly: System.Reflection.AssemblyTitleAttribute("SBWPF")]
[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")]
[assembly: System.Runtime.Versioning.TargetPlatformAttribute("Windows7.0")]
[assembly: System.Runtime.Versioning.SupportedOSPlatformAttribute("Windows7.0")]

// Von der MSBuild WriteCodeFragment-Klasse generiert.

Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
a31238605d3a29ce482c1384edcfc032d487adaa518a5dc58cb04092564d48e0
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
is_global = true
build_property.TargetFramework = net8.0-windows
build_property.TargetPlatformMinVersion = 7.0
build_property.UsingMicrosoftNETSdkWeb =
build_property.ProjectTypeGuids =
build_property.InvariantGlobalization =
build_property.PlatformNeutralAssembly =
build_property.EnforceExtendedAnalyzerRules =
build_property._SupportedPlatformList = Linux,macOS,Windows
build_property.RootNamespace = SBWPF_p0nr4gqy_wpftmp
build_property.ProjectDir = C:\Users\andy1\source\repos\SBWPF\SBWPF\
build_property.EnableComHosting =
build_property.EnableGeneratedComInterfaceComImportInterop =
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
// <auto-generated/>
global using global::System;
global using global::System.Collections.Generic;
global using global::System.Linq;
global using global::System.Threading;
global using global::System.Threading.Tasks;
Binary file not shown.
Empty file.
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
//------------------------------------------------------------------------------
// <auto-generated>
// Dieser Code wurde von einem Tool generiert.
// Laufzeitversion:4.0.30319.42000
//
// Änderungen an dieser Datei können falsches Verhalten verursachen und gehen verloren, wenn
// der Code erneut generiert wird.
// </auto-generated>
//------------------------------------------------------------------------------

using System;
using System.Reflection;

[assembly: System.Reflection.AssemblyCompanyAttribute("SBWPF")]
[assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")]
[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")]
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0")]
[assembly: System.Reflection.AssemblyProductAttribute("SBWPF")]
[assembly: System.Reflection.AssemblyTitleAttribute("SBWPF")]
[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")]
[assembly: System.Runtime.Versioning.TargetPlatformAttribute("Windows7.0")]
[assembly: System.Runtime.Versioning.SupportedOSPlatformAttribute("Windows7.0")]

// Von der MSBuild WriteCodeFragment-Klasse generiert.

Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
a31238605d3a29ce482c1384edcfc032d487adaa518a5dc58cb04092564d48e0
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
is_global = true
build_property.TargetFramework = net8.0-windows
build_property.TargetPlatformMinVersion = 7.0
build_property.UsingMicrosoftNETSdkWeb =
build_property.ProjectTypeGuids =
build_property.InvariantGlobalization =
build_property.PlatformNeutralAssembly =
build_property.EnforceExtendedAnalyzerRules =
build_property._SupportedPlatformList = Linux,macOS,Windows
build_property.RootNamespace = SBWPF_waj4vf52_wpftmp
build_property.ProjectDir = C:\Users\andy1\source\repos\SBWPF\SBWPF\
build_property.EnableComHosting =
build_property.EnableGeneratedComInterfaceComImportInterop =
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
// <auto-generated/>
global using global::System;
global using global::System.Collections.Generic;
global using global::System.Linq;
global using global::System.Threading;
global using global::System.Threading.Tasks;
Binary file not shown.
Empty file.
Loading

0 comments on commit a912ee8

Please sign in to comment.