From ca50e0c8fc88acd06d6e1932e9412464bff95edb Mon Sep 17 00:00:00 2001 From: Roy Ben-Shabat Date: Tue, 12 Jun 2018 19:04:09 +0300 Subject: Working on PPC modules and loading. --- .../PPC/Tango.PPC.UI/ViewModels/LoadingViewVM.cs | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) (limited to 'Software/Visual_Studio/PPC/Tango.PPC.UI/ViewModels/LoadingViewVM.cs') 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 a33dc25d7..20752ac71 100644 --- a/Software/Visual_Studio/PPC/Tango.PPC.UI/ViewModels/LoadingViewVM.cs +++ b/Software/Visual_Studio/PPC/Tango.PPC.UI/ViewModels/LoadingViewVM.cs @@ -4,6 +4,7 @@ using System.IO; using System.Linq; using System.Text; using System.Threading.Tasks; +using Tango.BL; using Tango.Core; using Tango.Core.Helpers; using Tango.PPC.Common; @@ -19,9 +20,17 @@ namespace Tango.PPC.UI.ViewModels { public async override void OnApplicationStarted() { - await Task.Delay(500); - NavigationManager.NavigateTo(NavigationView.LayoutView); - NavigationManager.NavigateTo(NavigationView.JobsView); + await Task.Factory.StartNew(() => + { + ObservablesEntitiesAdapter.Instance.Initialize(); + }); + + ApplicationManager.ModulesInitialized += (_, __) => + { + NavigationManager.NavigateTo(NavigationView.LayoutView); + }; + + await AuthenticationProvider.Login("roy@twine-s.com", "1234"); } } } -- cgit v1.3.1