Skip to content

Commit

Permalink
Update 1-0-0-3
Browse files Browse the repository at this point in the history
  • Loading branch information
Andy16823 committed May 7, 2024
1 parent ece546d commit bf8b1ec
Show file tree
Hide file tree
Showing 46 changed files with 258 additions and 86 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.
12 changes: 11 additions & 1 deletion Source/SBWPF/BackupPlanWindow.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,11 @@ public partial class BackupPlanWindow : Window

private ObservableCollection<Backuper.BackupSource> m_backupSources;
private MainWindow m_mainWindow;

private String m_oldName;

public BackupPlanWindow(BackupPlan plan, MainWindow mainWindow)
{
m_oldName = plan.Name;
BackupPlan = plan;
m_mainWindow = mainWindow;

Expand Down Expand Up @@ -93,6 +94,15 @@ private void removeSelection_Click(object sender, RoutedEventArgs e)

private void createPlanButton_Click(object sender, RoutedEventArgs e)
{
if(!m_oldName.Equals(this.backupNameTextbox.Text))
{
var oldPath = System.IO.Path.Combine(m_mainWindow.BackupsPath, m_oldName);
var newPath = System.IO.Path.Combine(m_mainWindow.BackupsPath, this.backupNameTextbox.Text);
if (Directory.Exists(oldPath))
{
Directory.Move(oldPath, newPath);
}
}
BackupPlan.Sources = m_backupSources.ToList();
Console.WriteLine(BackupPlan.Name);
m_mainWindow.SavePlans();
Expand Down
2 changes: 1 addition & 1 deletion Source/SBWPF/MainWindow.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
xmlns:svg1="clr-namespace:SVGImage.SVG;assembly=SVGImage"
xmlns:hc="https://handyorg.github.io/handycontrol"
mc:Ignorable="d"
Title="Smartli - Backup" Height="720" Width="1280" Style="{DynamicResource CustomWindowStyle}" hc:Theme.Skin="Dark">
Title="Smartli - Backup" Height="720" Width="1280" Loaded="Window_Loaded" Style="{DynamicResource CustomWindowStyle}" hc:Theme.Skin="Dark">
<DockPanel>
<Grid Height="auto">
<Grid.ColumnDefinitions>
Expand Down
5 changes: 5 additions & 0 deletions Source/SBWPF/MainWindow.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -660,5 +660,10 @@ private void importPlanMenuItem_Click(object sender, RoutedEventArgs e)
}
}
}

private void Window_Loaded(object sender, RoutedEventArgs e)
{
this.CheckForBackups();
}
}
}
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/SBWPF.dll
Binary file not shown.
Binary file modified Source/SBWPF/bin/Release/net8.0-windows/SBWPF.pdb
Binary file not shown.
Binary file modified Source/SBWPF/obj/Debug/net8.0-windows/MainWindow.baml
Binary file not shown.
42 changes: 25 additions & 17 deletions Source/SBWPF/obj/Debug/net8.0-windows/MainWindow.g.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#pragma checksum "..\..\..\MainWindow.xaml" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "341B919704B5FABE6592536318D982BD0E3667E4"
#pragma checksum "..\..\..\MainWindow.xaml" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "2C3BDE9E2B2F5E241577092E2E133ECEAECADF30"
//------------------------------------------------------------------------------
// <auto-generated>
// Dieser Code wurde von einem Tool generiert.
Expand Down Expand Up @@ -214,6 +214,14 @@ void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object
switch (connectionId)
{
case 1:

#line 12 "..\..\..\MainWindow.xaml"
((SBWPF.MainWindow)(target)).Loaded += new System.Windows.RoutedEventHandler(this.Window_Loaded);

#line default
#line hidden
return;
case 2:
this.createPlanButton = ((System.Windows.Controls.Button)(target));

#line 26 "..\..\..\MainWindow.xaml"
Expand All @@ -222,7 +230,7 @@ void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object
#line default
#line hidden
return;
case 2:
case 3:
this.restoreBackupButton = ((System.Windows.Controls.Button)(target));

#line 32 "..\..\..\MainWindow.xaml"
Expand All @@ -231,7 +239,7 @@ void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object
#line default
#line hidden
return;
case 3:
case 4:
this.createBackupButton = ((System.Windows.Controls.Button)(target));

#line 38 "..\..\..\MainWindow.xaml"
Expand All @@ -240,7 +248,7 @@ void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object
#line default
#line hidden
return;
case 4:
case 5:
this.aboutButton = ((System.Windows.Controls.Button)(target));

#line 46 "..\..\..\MainWindow.xaml"
Expand All @@ -249,7 +257,7 @@ void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object
#line default
#line hidden
return;
case 5:
case 6:
this.smartliButton = ((System.Windows.Controls.Button)(target));

#line 52 "..\..\..\MainWindow.xaml"
Expand All @@ -258,18 +266,18 @@ void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object
#line default
#line hidden
return;
case 6:
case 7:

#line 59 "..\..\..\MainWindow.xaml"
((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Button_Click);

#line default
#line hidden
return;
case 7:
case 8:
this.progressBar = ((System.Windows.Controls.ProgressBar)(target));
return;
case 8:
case 9:
this.searchBar = ((HandyControl.Controls.SearchBar)(target));

#line 71 "..\..\..\MainWindow.xaml"
Expand All @@ -278,10 +286,10 @@ void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object
#line default
#line hidden
return;
case 9:
case 10:
this.backupsListView = ((System.Windows.Controls.ListView)(target));
return;
case 10:
case 11:
this.deletePlanMenuItem = ((System.Windows.Controls.MenuItem)(target));

#line 105 "..\..\..\MainWindow.xaml"
Expand All @@ -290,7 +298,7 @@ void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object
#line default
#line hidden
return;
case 11:
case 12:
this.showBackupFolderMenuItem = ((System.Windows.Controls.MenuItem)(target));

#line 111 "..\..\..\MainWindow.xaml"
Expand All @@ -299,7 +307,7 @@ void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object
#line default
#line hidden
return;
case 12:
case 13:
this.createBackupMenuItem = ((System.Windows.Controls.MenuItem)(target));

#line 117 "..\..\..\MainWindow.xaml"
Expand All @@ -308,7 +316,7 @@ void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object
#line default
#line hidden
return;
case 13:
case 14:
this.editPlanMenuItem = ((System.Windows.Controls.MenuItem)(target));

#line 122 "..\..\..\MainWindow.xaml"
Expand All @@ -317,7 +325,7 @@ void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object
#line default
#line hidden
return;
case 14:
case 15:
this.exportPlanMenuItem = ((System.Windows.Controls.MenuItem)(target));

#line 128 "..\..\..\MainWindow.xaml"
Expand All @@ -326,7 +334,7 @@ void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object
#line default
#line hidden
return;
case 15:
case 16:
this.exportPlanSecuredMenuItem = ((System.Windows.Controls.MenuItem)(target));

#line 133 "..\..\..\MainWindow.xaml"
Expand All @@ -335,7 +343,7 @@ void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object
#line default
#line hidden
return;
case 16:
case 17:
this.importPlanMenuItem = ((System.Windows.Controls.MenuItem)(target));

#line 139 "..\..\..\MainWindow.xaml"
Expand All @@ -344,7 +352,7 @@ void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object
#line default
#line hidden
return;
case 17:
case 18:
this.restorBackupFromPlanMenuItem = ((System.Windows.Controls.MenuItem)(target));

#line 145 "..\..\..\MainWindow.xaml"
Expand Down
42 changes: 25 additions & 17 deletions Source/SBWPF/obj/Debug/net8.0-windows/MainWindow.g.i.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#pragma checksum "..\..\..\MainWindow.xaml" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "341B919704B5FABE6592536318D982BD0E3667E4"
#pragma checksum "..\..\..\MainWindow.xaml" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "2C3BDE9E2B2F5E241577092E2E133ECEAECADF30"
//------------------------------------------------------------------------------
// <auto-generated>
// Dieser Code wurde von einem Tool generiert.
Expand Down Expand Up @@ -214,6 +214,14 @@ void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object
switch (connectionId)
{
case 1:

#line 12 "..\..\..\MainWindow.xaml"
((SBWPF.MainWindow)(target)).Loaded += new System.Windows.RoutedEventHandler(this.Window_Loaded);

#line default
#line hidden
return;
case 2:
this.createPlanButton = ((System.Windows.Controls.Button)(target));

#line 26 "..\..\..\MainWindow.xaml"
Expand All @@ -222,7 +230,7 @@ void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object
#line default
#line hidden
return;
case 2:
case 3:
this.restoreBackupButton = ((System.Windows.Controls.Button)(target));

#line 32 "..\..\..\MainWindow.xaml"
Expand All @@ -231,7 +239,7 @@ void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object
#line default
#line hidden
return;
case 3:
case 4:
this.createBackupButton = ((System.Windows.Controls.Button)(target));

#line 38 "..\..\..\MainWindow.xaml"
Expand All @@ -240,7 +248,7 @@ void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object
#line default
#line hidden
return;
case 4:
case 5:
this.aboutButton = ((System.Windows.Controls.Button)(target));

#line 46 "..\..\..\MainWindow.xaml"
Expand All @@ -249,7 +257,7 @@ void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object
#line default
#line hidden
return;
case 5:
case 6:
this.smartliButton = ((System.Windows.Controls.Button)(target));

#line 52 "..\..\..\MainWindow.xaml"
Expand All @@ -258,18 +266,18 @@ void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object
#line default
#line hidden
return;
case 6:
case 7:

#line 59 "..\..\..\MainWindow.xaml"
((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Button_Click);

#line default
#line hidden
return;
case 7:
case 8:
this.progressBar = ((System.Windows.Controls.ProgressBar)(target));
return;
case 8:
case 9:
this.searchBar = ((HandyControl.Controls.SearchBar)(target));

#line 71 "..\..\..\MainWindow.xaml"
Expand All @@ -278,10 +286,10 @@ void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object
#line default
#line hidden
return;
case 9:
case 10:
this.backupsListView = ((System.Windows.Controls.ListView)(target));
return;
case 10:
case 11:
this.deletePlanMenuItem = ((System.Windows.Controls.MenuItem)(target));

#line 105 "..\..\..\MainWindow.xaml"
Expand All @@ -290,7 +298,7 @@ void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object
#line default
#line hidden
return;
case 11:
case 12:
this.showBackupFolderMenuItem = ((System.Windows.Controls.MenuItem)(target));

#line 111 "..\..\..\MainWindow.xaml"
Expand All @@ -299,7 +307,7 @@ void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object
#line default
#line hidden
return;
case 12:
case 13:
this.createBackupMenuItem = ((System.Windows.Controls.MenuItem)(target));

#line 117 "..\..\..\MainWindow.xaml"
Expand All @@ -308,7 +316,7 @@ void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object
#line default
#line hidden
return;
case 13:
case 14:
this.editPlanMenuItem = ((System.Windows.Controls.MenuItem)(target));

#line 122 "..\..\..\MainWindow.xaml"
Expand All @@ -317,7 +325,7 @@ void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object
#line default
#line hidden
return;
case 14:
case 15:
this.exportPlanMenuItem = ((System.Windows.Controls.MenuItem)(target));

#line 128 "..\..\..\MainWindow.xaml"
Expand All @@ -326,7 +334,7 @@ void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object
#line default
#line hidden
return;
case 15:
case 16:
this.exportPlanSecuredMenuItem = ((System.Windows.Controls.MenuItem)(target));

#line 133 "..\..\..\MainWindow.xaml"
Expand All @@ -335,7 +343,7 @@ void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object
#line default
#line hidden
return;
case 16:
case 17:
this.importPlanMenuItem = ((System.Windows.Controls.MenuItem)(target));

#line 139 "..\..\..\MainWindow.xaml"
Expand All @@ -344,7 +352,7 @@ void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object
#line default
#line hidden
return;
case 17:
case 18:
this.restorBackupFromPlanMenuItem = ((System.Windows.Controls.MenuItem)(target));

#line 145 "..\..\..\MainWindow.xaml"
Expand Down
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.g.resources
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
Loading

0 comments on commit bf8b1ec

Please sign in to comment.