From bfc481bb93045f759a147f074a2ab1be57076c92 Mon Sep 17 00:00:00 2001 From: Roy Ben-Shabat Date: Tue, 12 Mar 2019 17:28:51 +0200 Subject: Working on PPC update.. --- Software/DB/PPC/Tango.mdf | Bin 75497472 -> 75497472 bytes Software/DB/PPC/Tango_log.ldf | Bin 53673984 -> 53673984 bytes Software/Graphics/From Marketing/3.png | Bin 0 -> 18722 bytes Software/Graphics/From Marketing/Embroider.png | Bin 0 -> 90271 bytes Software/Graphics/From Marketing/Front.png | Bin 0 -> 318202 bytes Software/Graphics/From Marketing/Icon Cloud.png | Bin 0 -> 329523 bytes Software/Graphics/From Marketing/Left view.png | Bin 0 -> 385090 bytes Software/Graphics/From Marketing/Left.png | Bin 0 -> 7873247 bytes Software/Graphics/From Marketing/Right view.png | Bin 0 -> 291867 bytes Software/Graphics/From Marketing/Right.png | Bin 0 -> 7527881 bytes .../Graphics/From Marketing/System contour 2D.png | Bin 0 -> 53085 bytes Software/Graphics/From Marketing/TS Red Spool.png | Bin 0 -> 109753 bytes Software/Graphics/From Marketing/TS blue spool.png | Bin 0 -> 109797 bytes Software/Graphics/From Marketing/logo.png | Bin 0 -> 168881 bytes Software/Graphics/Mobile/m_update.png | Bin 0 -> 88509 bytes Software/Graphics/Mobile/machine-update.png | Bin 0 -> 54914 bytes .../Tango.PPC.MachineSettings/Views/MainView.xaml | 174 +++++++++------ .../MachineUpdate/MachineUpdateManager.cs | 7 + .../PPC/Tango.PPC.UI/Images/machine-update.png | Bin 54914 -> 88509 bytes .../Tango.PPC.UI/ViewModels/MachineUpdateViewVM.cs | 8 + .../PPC/Tango.PPC.UI/Views/MachineUpdateView.xaml | 234 ++++++++++++--------- 21 files changed, 248 insertions(+), 175 deletions(-) create mode 100644 Software/Graphics/From Marketing/3.png create mode 100644 Software/Graphics/From Marketing/Embroider.png create mode 100644 Software/Graphics/From Marketing/Front.png create mode 100644 Software/Graphics/From Marketing/Icon Cloud.png create mode 100644 Software/Graphics/From Marketing/Left view.png create mode 100644 Software/Graphics/From Marketing/Left.png create mode 100644 Software/Graphics/From Marketing/Right view.png create mode 100644 Software/Graphics/From Marketing/Right.png create mode 100644 Software/Graphics/From Marketing/System contour 2D.png create mode 100644 Software/Graphics/From Marketing/TS Red Spool.png create mode 100644 Software/Graphics/From Marketing/TS blue spool.png create mode 100644 Software/Graphics/From Marketing/logo.png create mode 100644 Software/Graphics/Mobile/m_update.png create mode 100644 Software/Graphics/Mobile/machine-update.png diff --git a/Software/DB/PPC/Tango.mdf b/Software/DB/PPC/Tango.mdf index e88a5f3bd..1f297db88 100644 Binary files a/Software/DB/PPC/Tango.mdf and b/Software/DB/PPC/Tango.mdf differ diff --git a/Software/DB/PPC/Tango_log.ldf b/Software/DB/PPC/Tango_log.ldf index 0d682e1a5..fb6cec7dc 100644 Binary files a/Software/DB/PPC/Tango_log.ldf and b/Software/DB/PPC/Tango_log.ldf differ diff --git a/Software/Graphics/From Marketing/3.png b/Software/Graphics/From Marketing/3.png new file mode 100644 index 000000000..c31bc5f66 Binary files /dev/null and b/Software/Graphics/From Marketing/3.png differ diff --git a/Software/Graphics/From Marketing/Embroider.png b/Software/Graphics/From Marketing/Embroider.png new file mode 100644 index 000000000..f71bc2a70 Binary files /dev/null and b/Software/Graphics/From Marketing/Embroider.png differ diff --git a/Software/Graphics/From Marketing/Front.png b/Software/Graphics/From Marketing/Front.png new file mode 100644 index 000000000..4bf9fd6c9 Binary files /dev/null and b/Software/Graphics/From Marketing/Front.png differ diff --git a/Software/Graphics/From Marketing/Icon Cloud.png b/Software/Graphics/From Marketing/Icon Cloud.png new file mode 100644 index 000000000..720609099 Binary files /dev/null and b/Software/Graphics/From Marketing/Icon Cloud.png differ diff --git a/Software/Graphics/From Marketing/Left view.png b/Software/Graphics/From Marketing/Left view.png new file mode 100644 index 000000000..65b269743 Binary files /dev/null and b/Software/Graphics/From Marketing/Left view.png differ diff --git a/Software/Graphics/From Marketing/Left.png b/Software/Graphics/From Marketing/Left.png new file mode 100644 index 000000000..3d6d63d30 Binary files /dev/null and b/Software/Graphics/From Marketing/Left.png differ diff --git a/Software/Graphics/From Marketing/Right view.png b/Software/Graphics/From Marketing/Right view.png new file mode 100644 index 000000000..aedacdcfd Binary files /dev/null and b/Software/Graphics/From Marketing/Right view.png differ diff --git a/Software/Graphics/From Marketing/Right.png b/Software/Graphics/From Marketing/Right.png new file mode 100644 index 000000000..158d4b625 Binary files /dev/null and b/Software/Graphics/From Marketing/Right.png differ diff --git a/Software/Graphics/From Marketing/System contour 2D.png b/Software/Graphics/From Marketing/System contour 2D.png new file mode 100644 index 000000000..fdee5a30d Binary files /dev/null and b/Software/Graphics/From Marketing/System contour 2D.png differ diff --git a/Software/Graphics/From Marketing/TS Red Spool.png b/Software/Graphics/From Marketing/TS Red Spool.png new file mode 100644 index 000000000..5a60c6b16 Binary files /dev/null and b/Software/Graphics/From Marketing/TS Red Spool.png differ diff --git a/Software/Graphics/From Marketing/TS blue spool.png b/Software/Graphics/From Marketing/TS blue spool.png new file mode 100644 index 000000000..140a7b516 Binary files /dev/null and b/Software/Graphics/From Marketing/TS blue spool.png differ diff --git a/Software/Graphics/From Marketing/logo.png b/Software/Graphics/From Marketing/logo.png new file mode 100644 index 000000000..649a73180 Binary files /dev/null and b/Software/Graphics/From Marketing/logo.png differ diff --git a/Software/Graphics/Mobile/m_update.png b/Software/Graphics/Mobile/m_update.png new file mode 100644 index 000000000..d8db51337 Binary files /dev/null and b/Software/Graphics/Mobile/m_update.png differ diff --git a/Software/Graphics/Mobile/machine-update.png b/Software/Graphics/Mobile/machine-update.png new file mode 100644 index 000000000..3e49520dd Binary files /dev/null and b/Software/Graphics/Mobile/machine-update.png differ diff --git a/Software/Visual_Studio/PPC/Modules/Tango.PPC.MachineSettings/Views/MainView.xaml b/Software/Visual_Studio/PPC/Modules/Tango.PPC.MachineSettings/Views/MainView.xaml index 8ba06eb43..4f846a46d 100644 --- a/Software/Visual_Studio/PPC/Modules/Tango.PPC.MachineSettings/Views/MainView.xaml +++ b/Software/Visual_Studio/PPC/Modules/Tango.PPC.MachineSettings/Views/MainView.xaml @@ -11,7 +11,7 @@ xmlns:global="clr-namespace:Tango.PPC.MachineSettings" xmlns:local="clr-namespace:Tango.PPC.MachineSettings.Views" mc:Ignorable="d" - d:DesignHeight="1280" d:DesignWidth="800" d:DataContext="{d:DesignInstance Type=vm:MainViewVM, IsDesignTimeCreatable=False}" DataContext="{x:Static global:ViewModelLocator.MainViewVM}"> + d:DesignHeight="2000" d:DesignWidth="800" d:DataContext="{d:DesignInstance Type=vm:MainViewVM, IsDesignTimeCreatable=False}" DataContext="{x:Static global:ViewModelLocator.MainViewVM}"> @@ -48,95 +48,129 @@ Enable Hot Spot - + Hot Spot Password + + + + + Enabling a hot-spot will create a wireless network dedicated to this machine. + + - - Enable External Bridge Service - + + + Enable External Bridge Service + + + External Bridge Password + + - External Bridge Password - - + + + + Enabling the external bridge service allows external Twine applications to interact with this machine over the local network. + + + - - Supported Job Types - - - - - - - - - - - - - - - - - - Supported Color Spaces/Catalogs - - - - - - - - - - - - - - - - - - Default Thread Type - - - - Default Segment Length - + Default Segment Length + + + - + + + + Job settings allows you to set the default configuration for new jobs. + + + - - Enable Remote Assistance - - + + + Enable Remote Assistance + + + + + + + Enable remote assistance for Twine's technicians. + + + diff --git a/Software/Visual_Studio/PPC/Tango.PPC.Common/MachineUpdate/MachineUpdateManager.cs b/Software/Visual_Studio/PPC/Tango.PPC.Common/MachineUpdate/MachineUpdateManager.cs index 952944cf9..3fffc2045 100644 --- a/Software/Visual_Studio/PPC/Tango.PPC.Common/MachineUpdate/MachineUpdateManager.cs +++ b/Software/Visual_Studio/PPC/Tango.PPC.Common/MachineUpdate/MachineUpdateManager.cs @@ -340,6 +340,8 @@ namespace Tango.PPC.Common.MachineUpdate { LogManager.Log("Starting database update..."); + UpdateProgress("Updating Database", "Initializing..."); + LogManager.Log("Looking for update scripts configuration on application path..."); String config_file = Path.Combine(PathHelper.GetStartupPath(), "Update Scripts", "config.xml"); @@ -355,6 +357,8 @@ namespace Tango.PPC.Common.MachineUpdate LogManager.Log($"Updating database '{update_response.DataSource.ToString()}' => '{localDataSource.ToString()}'..."); + UpdateProgress("Updating Database", "Initializing update sequence..."); + ExaminerSequenceConfiguration config_sequence = ExaminerSequenceConfiguration.FromFile(config_file); foreach (var item in config_sequence.Items.Where(x => x.Type == ExaminerSequenceItemType.Data).OrderBy(x => x.Index)) @@ -382,6 +386,8 @@ namespace Tango.PPC.Common.MachineUpdate try { + UpdateProgress("Updating Database", item.Name + "..."); + var result = process.Execute().Result; if (result.ExitCode != ExaminerProcessExitCode.Success) @@ -397,6 +403,7 @@ namespace Tango.PPC.Common.MachineUpdate } } + UpdateProgress("Updating Database", "Database synchronization completed successfully."); LogManager.Log("Update completed successfully."); }); } diff --git a/Software/Visual_Studio/PPC/Tango.PPC.UI/Images/machine-update.png b/Software/Visual_Studio/PPC/Tango.PPC.UI/Images/machine-update.png index 3e49520dd..d8db51337 100644 Binary files a/Software/Visual_Studio/PPC/Tango.PPC.UI/Images/machine-update.png and b/Software/Visual_Studio/PPC/Tango.PPC.UI/Images/machine-update.png differ diff --git a/Software/Visual_Studio/PPC/Tango.PPC.UI/ViewModels/MachineUpdateViewVM.cs b/Software/Visual_Studio/PPC/Tango.PPC.UI/ViewModels/MachineUpdateViewVM.cs index b5b5f56bc..07da99818 100644 --- a/Software/Visual_Studio/PPC/Tango.PPC.UI/ViewModels/MachineUpdateViewVM.cs +++ b/Software/Visual_Studio/PPC/Tango.PPC.UI/ViewModels/MachineUpdateViewVM.cs @@ -33,6 +33,7 @@ namespace Tango.PPC.UI.ViewModels private MachineUpdateResult _update_result; private DbCompareResult _db_compare_result; + private bool _isChecking; #region Properties @@ -132,8 +133,11 @@ namespace Tango.PPC.UI.ViewModels { await NavigateTo(MachineUpdateView.UpdateCheckView); + if (_isChecking) return; + try { + _isChecking = true; IsDbUpdate = false; var response = await MachineUpdateManager.CheckForUpdate(MachineProvider.Machine.SerialNumber); @@ -164,6 +168,10 @@ namespace Tango.PPC.UI.ViewModels LogManager.Log(ex, "Error while trying to check for updates."); await NavigateTo(MachineUpdateView.UpdateFailedView); } + finally + { + _isChecking = false; + } } private async void Update() diff --git a/Software/Visual_Studio/PPC/Tango.PPC.UI/Views/MachineUpdateView.xaml b/Software/Visual_Studio/PPC/Tango.PPC.UI/Views/MachineUpdateView.xaml index 0fb9d9e09..ba7e9e019 100644 --- a/Software/Visual_Studio/PPC/Tango.PPC.UI/Views/MachineUpdateView.xaml +++ b/Software/Visual_Studio/PPC/Tango.PPC.UI/Views/MachineUpdateView.xaml @@ -11,115 +11,127 @@ xmlns:vm="clr-namespace:Tango.PPC.UI.ViewModels" xmlns:local="clr-namespace:Tango.PPC.UI.Views" mc:Ignorable="d" - d:DesignHeight="1280" d:DesignWidth="800" Background="{StaticResource TangoPrimaryBackgroundBrush}" d:DataContext="{d:DesignInstance Type=vm:MachineUpdateViewVM, IsDesignTimeCreatable=False}" DataContext="{x:Static global:ViewModelLocator.MachineUpdateViewVM}"> + d:DesignHeight="1280" d:DesignWidth="800" Background="{StaticResource TangoPrimaryBackgroundBrush}" d:DataContext="{d:DesignInstance Type=vm:MachineUpdateViewVM, IsDesignTimeCreatable=False}" DataContext="{x:Static global:ViewModelLocator.MachineUpdateViewVM}"> - - + + - - - + + + Back To Application + + + + Checking for updates, please wait... - - + + + - - - - - - - - + + + + + + + + + + Updating your machine can improve the following: - - - - - - Support for new media - - - - - Refined color conversion and calibration algorithms + + + + + + Support for new media + + + + + Refined color conversion and calibration algorithms + + + + + Software fixes and improvements + + + + + Firmware upgrade + - - - Software fixes and improvements - - - - - Firmware upgrade - - - - + Tap 'UPDATE' to start updating now. - - - UPDATE - - Back To Application - + + + - - - Your machine is up to date! - - CLOSE - + + + CLOSE + + + + Your machine is up to date! + + - - - An error occurred while trying to check for updates. Please check your internet connection and try again. - - TRY AGAIN - - Back To Application - + + + TRY AGAIN + Back To Application + + + + An error occurred while trying to check for updates. Please check your internet connection and try again. + + - Updating your machine + Updating your machine Do not turn off the machine - + @@ -129,37 +141,46 @@ - - - - Updating database... - + + Updating your machine + Do not turn off the machine + + + + + + - - - Update completed successfully ! - - RESTART - + + + RESTART + + + + Your machine is up to date! + + - - - Update Failed - - - TRY AGAIN - - Back To Application - + + + TRY AGAIN + Back To Application + + + + Update Failed + + + - + Updating your software @@ -168,12 +189,15 @@ - - - An error occurred while trying to update the machine. - - Back To Application - + + + CLOSE + + + + An error occurred while trying to update the machine. + + -- cgit v1.3.1