From e47f736bca350350a55fa287093dad560da8f678 Mon Sep 17 00:00:00 2001 From: Roy Ben-Shabat Date: Thu, 6 Dec 2018 15:48:47 +0200 Subject: Working on PPC firmware upgrade !!! --- .../Tango.PPC.UI/Views/FirmwareUpgradeView.xaml | 55 ++++++++++++++++++++++ .../Tango.PPC.UI/Views/FirmwareUpgradeView.xaml.cs | 47 ++++++++++++++++++ .../PPC/Tango.PPC.UI/Views/MachineSetupView.xaml | 28 ++--------- .../PPC/Tango.PPC.UI/Views/MainView.xaml | 1 + 4 files changed, 107 insertions(+), 24 deletions(-) create mode 100644 Software/Visual_Studio/PPC/Tango.PPC.UI/Views/FirmwareUpgradeView.xaml create mode 100644 Software/Visual_Studio/PPC/Tango.PPC.UI/Views/FirmwareUpgradeView.xaml.cs (limited to 'Software/Visual_Studio/PPC/Tango.PPC.UI/Views') diff --git a/Software/Visual_Studio/PPC/Tango.PPC.UI/Views/FirmwareUpgradeView.xaml b/Software/Visual_Studio/PPC/Tango.PPC.UI/Views/FirmwareUpgradeView.xaml new file mode 100644 index 000000000..985e00291 --- /dev/null +++ b/Software/Visual_Studio/PPC/Tango.PPC.UI/Views/FirmwareUpgradeView.xaml @@ -0,0 +1,55 @@ + + + + + + + + FIRMWARE UPGRADE + + + + + + + Now it's time to perform a firmware upgrade and verify the connection to the machine's embedded firmware. Please wait.. + + + + + + + + + + Machine is ready! + + RESTART + + + + + + + Firmware upgrade failed, tap 'try again' to restart the process. + + TRY AGAIN + + + + + + + + diff --git a/Software/Visual_Studio/PPC/Tango.PPC.UI/Views/FirmwareUpgradeView.xaml.cs b/Software/Visual_Studio/PPC/Tango.PPC.UI/Views/FirmwareUpgradeView.xaml.cs new file mode 100644 index 000000000..867309d6a --- /dev/null +++ b/Software/Visual_Studio/PPC/Tango.PPC.UI/Views/FirmwareUpgradeView.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.Core.DI; +using Tango.PPC.UI.ViewModels; +using Tango.PPC.UI.ViewsContracts; + +namespace Tango.PPC.UI.Views +{ + /// + /// Interaction logic for FirmwareUpgradeView.xaml + /// + public partial class FirmwareUpgradeView : UserControl, IFirmwareUpgradeView + { + public FirmwareUpgradeView() + { + InitializeComponent(); + TangoIOC.Default.Register(this); + } + + public Task NavigateTo(FirmwareUpgradeViewVM.FirmUpgradeView view) + { + TaskCompletionSource source = new TaskCompletionSource(); + + this.BeginInvoke(() => + { + navigationControl.NavigateTo(view.ToString(), () => + { + source.SetResult(new object()); + }); + }); + + return source.Task; + } + } +} diff --git a/Software/Visual_Studio/PPC/Tango.PPC.UI/Views/MachineSetupView.xaml b/Software/Visual_Studio/PPC/Tango.PPC.UI/Views/MachineSetupView.xaml index d397cfa35..4ac6dab92 100644 --- a/Software/Visual_Studio/PPC/Tango.PPC.UI/Views/MachineSetupView.xaml +++ b/Software/Visual_Studio/PPC/Tango.PPC.UI/Views/MachineSetupView.xaml @@ -33,7 +33,7 @@ - + Welcome to the machine setup wizard! In the next steps the software will gather required information, perform tests and apply an initial configuration to this machine. @@ -67,29 +67,9 @@ - - - - It is recommended to perform a quick communication test with the machine before proceeding. Please turn on and connect the machine, then tap 'perform test'. - - - - SKIP - PERFORM TEST - - - - - - - - - - - - + The next step is to download the latest software package and synchronize the machine data. Please enter your machine serial number and press 'install'. @@ -110,7 +90,7 @@ - Please wait while we setting up this machine. + Please wait while we're setting up this machine. Do not turn off this PC. @@ -126,7 +106,7 @@ - + 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 3436bb3bb..ed15180c4 100644 --- a/Software/Visual_Studio/PPC/Tango.PPC.UI/Views/MainView.xaml +++ b/Software/Visual_Studio/PPC/Tango.PPC.UI/Views/MainView.xaml @@ -84,6 +84,7 @@ + -- cgit v1.3.1