From 4cabb5aabc490156b50cd02592926539d48a7af8 Mon Sep 17 00:00:00 2001 From: Roy Ben Shabat Date: Sun, 15 Dec 2019 01:09:46 +0200 Subject: Implmented InternalModule navigation for PPC. Fixed issue with TangoIOC.GetAllInstancedByBase. Implemented PowerOff Screen. --- .../PPC/Tango.PPC.UI/ViewModels/LayoutViewVM.cs | 13 +++++++++++++ 1 file changed, 13 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 9e8a9fe34..e18354f89 100644 --- a/Software/Visual_Studio/PPC/Tango.PPC.UI/ViewModels/LayoutViewVM.cs +++ b/Software/Visual_Studio/PPC/Tango.PPC.UI/ViewModels/LayoutViewVM.cs @@ -10,6 +10,7 @@ using Tango.Integration.Operation; using Tango.PPC.Common; using Tango.PPC.Common.Modules; using Tango.PPC.Common.Navigation; +using Tango.PPC.UI.Views; using Tango.PPC.UI.ViewsContracts; using Tango.SharedUI; @@ -121,6 +122,11 @@ namespace Tango.PPC.UI.ViewModels /// public RelayCommand RestartApplicationCommand { get; set; } + /// + /// Gets or sets the power off command. + /// + public RelayCommand PowerOffCommand { get; set; } + #endregion #region Constructors @@ -146,6 +152,7 @@ namespace Tango.PPC.UI.ViewModels PowerCommand = new RelayCommand(() => IsPowerOpened = true); RestartApplicationCommand = new RelayCommand(RestartApplication); + PowerOffCommand = new RelayCommand(PowerOffMachine); } #endregion @@ -239,6 +246,12 @@ namespace Tango.PPC.UI.ViewModels } } + private async void PowerOffMachine() + { + IsMenuOpened = false; + await NavigationManager.NavigateTo(nameof(PowerOffView)); + } + #endregion #region Override Methods -- cgit v1.3.1