From 37e5138e6acac4a9b93e018087fe9c50d36c4b34 Mon Sep 17 00:00:00 2001 From: Roy Ben-Shabat Date: Thu, 30 Aug 2018 19:04:18 +0300 Subject: Implemented machine update on PPC !!! Need to verify update scripts... --- .../Visual_Studio/PPC/Tango.PPC.UI/ViewModels/LayoutViewVM.cs | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'Software/Visual_Studio/PPC/Tango.PPC.UI/ViewModels/LayoutViewVM.cs') diff --git a/Software/Visual_Studio/PPC/Tango.PPC.UI/ViewModels/LayoutViewVM.cs b/Software/Visual_Studio/PPC/Tango.PPC.UI/ViewModels/LayoutViewVM.cs index 28692cdfa..fd36d0d13 100644 --- a/Software/Visual_Studio/PPC/Tango.PPC.UI/ViewModels/LayoutViewVM.cs +++ b/Software/Visual_Studio/PPC/Tango.PPC.UI/ViewModels/LayoutViewVM.cs @@ -84,6 +84,10 @@ namespace Tango.PPC.UI.ViewModels /// public RelayCommand SignOutCommand { get; set; } + /// + /// Gets or sets the update command. + /// + public RelayCommand UpdateCommand { get; set; } #endregion #region Constructors @@ -100,6 +104,11 @@ namespace Tango.PPC.UI.ViewModels StopPrintingCommand = new RelayCommand(StopPrinting); SignOutCommand = new RelayCommand(SignOut); + UpdateCommand = new RelayCommand(() => + { + NavigationManager.NavigateTo(NavigationView.MachineUpdateView); + TangoIOC.Default.GetInstance().CheckForUpdates(); + }); } #endregion -- cgit v1.3.1