From 25b7d63b202f85fa5af57f4d59c984e9afaf30c5 Mon Sep 17 00:00:00 2001 From: Roy Ben-Shabat Date: Thu, 5 Jul 2018 19:44:36 +0300 Subject: Using LINQ to SQL Async methods in JobView. --- Software/Visual_Studio/PPC/Tango.PPC.UI/ViewModels/LoginViewVM.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'Software/Visual_Studio/PPC/Tango.PPC.UI/ViewModels/LoginViewVM.cs') diff --git a/Software/Visual_Studio/PPC/Tango.PPC.UI/ViewModels/LoginViewVM.cs b/Software/Visual_Studio/PPC/Tango.PPC.UI/ViewModels/LoginViewVM.cs index 6107a906d..293435d0b 100644 --- a/Software/Visual_Studio/PPC/Tango.PPC.UI/ViewModels/LoginViewVM.cs +++ b/Software/Visual_Studio/PPC/Tango.PPC.UI/ViewModels/LoginViewVM.cs @@ -56,9 +56,10 @@ namespace Tango.PPC.UI.ViewModels NotificationProvider.ShowWarning("Email or password are incorrect."); } - ApplicationManager.ModulesInitialized += (_, __) => + ApplicationManager.ModulesInitialized += async (_, __) => { - NavigationManager.NavigateTo(NavigationView.HomeModule); + await Task.Delay(500); + await NavigationManager.NavigateTo(NavigationView.HomeModule); }; } } -- cgit v1.3.1