From fcf154eb2ae88dcf1003ea6bd14c91cab1a616e9 Mon Sep 17 00:00:00 2001 From: Roy Ben-Shabat Date: Sun, 24 Nov 2019 17:31:30 +0200 Subject: Backup Manager. --- .../PPC/Tango.PPC.UI/Views/BackupRestoreView.xaml | 128 +++++++++++++++++++++ .../Tango.PPC.UI/Views/BackupRestoreView.xaml.cs | 47 ++++++++ .../PPC/Tango.PPC.UI/Views/LayoutView.xaml | 9 ++ .../PPC/Tango.PPC.UI/Views/MainView.xaml | 1 + 4 files changed, 185 insertions(+) create mode 100644 Software/Visual_Studio/PPC/Tango.PPC.UI/Views/BackupRestoreView.xaml create mode 100644 Software/Visual_Studio/PPC/Tango.PPC.UI/Views/BackupRestoreView.xaml.cs (limited to 'Software/Visual_Studio/PPC/Tango.PPC.UI/Views') diff --git a/Software/Visual_Studio/PPC/Tango.PPC.UI/Views/BackupRestoreView.xaml b/Software/Visual_Studio/PPC/Tango.PPC.UI/Views/BackupRestoreView.xaml new file mode 100644 index 000000000..ad8a5ca18 --- /dev/null +++ b/Software/Visual_Studio/PPC/Tango.PPC.UI/Views/BackupRestoreView.xaml @@ -0,0 +1,128 @@ + + + + + + + + + + + + + + + + + + + Back + + + + + + + + + + Welcome to the backup/restore wizard + + + This wizard allows you to create a complete backup of your current machine state including software, firmware, data and user settings. + + + + For creating a complete backup of your system please press 'Backup'. + + In case you want to restore your system to a previous state, please press 'Restore'. + + + + + + + + + Backup + + Create a complete backup of your system state and save it to a storage device. + + + + + + + + + + Restore + + Restore your system from a previously saved backup file. + + + + + + + + + + + Backup your system + + + This wizard allows you to create a complete backup of your current machine state including software, firmware, data and user settings. + + + + For creating a complete backup of your system please press 'Backup'. + + In case you want to restore your system to a previous state, please press 'Restore'. + + + + + + + + Restore your system + + + This wizard allows you to create a complete backup of your current machine state including software, firmware, data and user settings. + + + + For creating a complete backup of your system please press 'Backup'. + + In case you want to restore your system to a previous state, please press 'Restore'. + + + + + + + diff --git a/Software/Visual_Studio/PPC/Tango.PPC.UI/Views/BackupRestoreView.xaml.cs b/Software/Visual_Studio/PPC/Tango.PPC.UI/Views/BackupRestoreView.xaml.cs new file mode 100644 index 000000000..824bad9f0 --- /dev/null +++ b/Software/Visual_Studio/PPC/Tango.PPC.UI/Views/BackupRestoreView.xaml.cs @@ -0,0 +1,47 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using System.Windows; +using System.Windows.Controls; +using System.Windows.Data; +using System.Windows.Documents; +using System.Windows.Input; +using System.Windows.Media; +using System.Windows.Media.Imaging; +using System.Windows.Navigation; +using System.Windows.Shapes; +using Tango.PPC.Common; +using Tango.PPC.UI.ViewModels; +using Tango.PPC.UI.ViewsContracts; + +namespace Tango.PPC.UI.Views +{ + /// + /// Interaction logic for BackupRestoreView.xaml + /// + public partial class BackupRestoreView : UserControl, IBackupRestoreView + { + public static BackupRestoreView Instance { get; internal set; } + + public BackupRestoreView() + { + InitializeComponent(); + + Instance = this; + } + + public Task NavigateTo(BackupRestoreViewVM.BackupRestoreView view) + { + TaskCompletionSource source = new TaskCompletionSource(); + + navigationControl.NavigateTo(view.ToString(), () => + { + source.SetResult(new object()); + }); + + return source.Task; + } + } +} diff --git a/Software/Visual_Studio/PPC/Tango.PPC.UI/Views/LayoutView.xaml b/Software/Visual_Studio/PPC/Tango.PPC.UI/Views/LayoutView.xaml index 39c087c52..fa6b8de7e 100644 --- a/Software/Visual_Studio/PPC/Tango.PPC.UI/Views/LayoutView.xaml +++ b/Software/Visual_Studio/PPC/Tango.PPC.UI/Views/LayoutView.xaml @@ -100,6 +100,15 @@ + + + + + + Backup/Restore + + + diff --git a/Software/Visual_Studio/PPC/Tango.PPC.UI/Views/MainView.xaml b/Software/Visual_Studio/PPC/Tango.PPC.UI/Views/MainView.xaml index 6d6d57526..2119aebe7 100644 --- a/Software/Visual_Studio/PPC/Tango.PPC.UI/Views/MainView.xaml +++ b/Software/Visual_Studio/PPC/Tango.PPC.UI/Views/MainView.xaml @@ -89,6 +89,7 @@ + -- cgit v1.3.1