diff options
| author | Roy Ben-Shabat <Roy@Twine-s.com> | 2018-11-26 14:19:06 +0200 |
|---|---|---|
| committer | Roy Ben-Shabat <Roy@Twine-s.com> | 2018-11-26 14:19:06 +0200 |
| commit | 6fb22273d15ed476ccbd3820de6af9bc0deee793 (patch) | |
| tree | 35c40b14471bbc191d12a1dafcd807ec16aacb87 /Software/Visual_Studio/PPC/Tango.PPC.UI/ViewModels/LoadingViewVM.cs | |
| parent | 10a9435c7fece43c588addb744952d92596a8f5b (diff) | |
| download | Tango-6fb22273d15ed476ccbd3820de6af9bc0deee793.tar.gz Tango-6fb22273d15ed476ccbd3820de6af9bc0deee793.zip | |
Implemented Application Initialization Error and Handling.
Diffstat (limited to 'Software/Visual_Studio/PPC/Tango.PPC.UI/ViewModels/LoadingViewVM.cs')
| -rw-r--r-- | Software/Visual_Studio/PPC/Tango.PPC.UI/ViewModels/LoadingViewVM.cs | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/Software/Visual_Studio/PPC/Tango.PPC.UI/ViewModels/LoadingViewVM.cs b/Software/Visual_Studio/PPC/Tango.PPC.UI/ViewModels/LoadingViewVM.cs index 486829103..5598362be 100644 --- a/Software/Visual_Studio/PPC/Tango.PPC.UI/ViewModels/LoadingViewVM.cs +++ b/Software/Visual_Studio/PPC/Tango.PPC.UI/ViewModels/LoadingViewVM.cs @@ -54,6 +54,17 @@ namespace Tango.PPC.UI.ViewModels { Task.Delay(1000).ContinueWith((x) => { IsLoading = true; }); } + + applicationManager.ApplicationInitializationError += ApplicationManager_ApplicationInitializationError; + } + + private void ApplicationManager_ApplicationInitializationError(object sender, Exception ex) + { + InvokeUI(() => + { + NavigationManager.NavigateWithObject<Exception>(NavigationView.LoadingErrorView, ex); + IsLoading = false; + }); } /// <summary> |
