aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI/StudioApplication
diff options
context:
space:
mode:
authorRoy <roy.mail.net@gmail.com>2017-12-22 13:28:53 +0200
committerRoy <roy.mail.net@gmail.com>2017-12-22 13:28:53 +0200
commit6091da506db1083f6ca707c24e509ca3470f6a73 (patch)
treeb6d87616e70e8035762aedab4271aeee4955f3a2 /Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI/StudioApplication
parent9989238711695810324960c82b1bd85fc67c570e (diff)
downloadTango-6091da506db1083f6ca707c24e509ca3470f6a73.tar.gz
Tango-6091da506db1083f6ca707c24e509ca3470f6a73.zip
Implemented Remote To Local File Synchronization.
Diffstat (limited to 'Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI/StudioApplication')
-rw-r--r--Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI/StudioApplication/DefaultStudioApplicationManager.cs12
1 files changed, 7 insertions, 5 deletions
diff --git a/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI/StudioApplication/DefaultStudioApplicationManager.cs b/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI/StudioApplication/DefaultStudioApplicationManager.cs
index b95a74a3e..ea4234fd8 100644
--- a/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI/StudioApplication/DefaultStudioApplicationManager.cs
+++ b/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI/StudioApplication/DefaultStudioApplicationManager.cs
@@ -23,9 +23,13 @@ namespace Tango.MachineStudio.UI.StudioApplication
_navigationManager = navigationManager;
}
+ public bool IsShuttingDown { get; private set; }
+
public async void ShutDown()
{
- _navigationManager.NavigateTo(NavigationView.ShutdownView);
+ if (IsShuttingDown) return;
+
+ IsShuttingDown = true;
await Task.Factory.StartNew(async () =>
{
@@ -36,14 +40,12 @@ namespace Tango.MachineStudio.UI.StudioApplication
var result = await vm.OnShutdownRequest();
if (!result)
{
- ThreadsHelper.InvokeUI(() =>
- {
- _navigationManager.NavigateTo(NavigationView.MainView);
- });
+ IsShuttingDown = false;
return;
}
}
+ _navigationManager.NavigateTo(NavigationView.ShutdownView);
Thread.Sleep(3000);
Environment.Exit(0);