aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/PPC/Tango.PPC.UI/ViewModels/LayoutViewVM.cs
diff options
context:
space:
mode:
authorRoy <Roy.mail.net@gmail.com>2023-07-10 08:59:44 +0300
committerRoy <Roy.mail.net@gmail.com>2023-07-10 08:59:44 +0300
commit98998e64bd4bd1c7c516019eeb2649693eee175f (patch)
tree2b85378d410b244f4b4673ff5023d92b9f91213e /Software/Visual_Studio/PPC/Tango.PPC.UI/ViewModels/LayoutViewVM.cs
parent29c5cb29d6653164328720f7b360f234d9b68a56 (diff)
parenta906e7316bc179888f475f6bcff5ddc20a501346 (diff)
downloadTango-98998e64bd4bd1c7c516019eeb2649693eee175f.tar.gz
Tango-98998e64bd4bd1c7c516019eeb2649693eee175f.zip
Merge branch 'eureka' of https://twinetfs.visualstudio.com/Tango/_git/Tango into eureka
Diffstat (limited to 'Software/Visual_Studio/PPC/Tango.PPC.UI/ViewModels/LayoutViewVM.cs')
-rw-r--r--Software/Visual_Studio/PPC/Tango.PPC.UI/ViewModels/LayoutViewVM.cs11
1 files changed, 11 insertions, 0 deletions
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 f40a89f42..17b676499 100644
--- a/Software/Visual_Studio/PPC/Tango.PPC.UI/ViewModels/LayoutViewVM.cs
+++ b/Software/Visual_Studio/PPC/Tango.PPC.UI/ViewModels/LayoutViewVM.cs
@@ -361,6 +361,9 @@ namespace Tango.PPC.UI.ViewModels
if (MachineProvider.MachineOperator.Status != MachineStatuses.Disconnected)
ResetMachine();
return;
+ case PowerEurekaViewVM.PowerActionEnum.CloseApp:
+ CloseApplication();
+ return;
default:
return;
}
@@ -455,6 +458,14 @@ namespace Tango.PPC.UI.ViewModels
}
}
+ private async void CloseApplication()
+ {
+ if (await NotificationProvider.ShowQuestion("Are you sure you want to close the application?"))
+ {
+ ApplicationManager.ShutDown();
+ }
+ }
+
/// <summary>
/// Powers off the machine.
/// </summary>