aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/PPC/Tango.PPC.UI/ViewModels/LoginViewVM.cs
diff options
context:
space:
mode:
authorRoy <Roy.mail.net@gmail.com>2023-05-09 16:10:17 +0300
committerRoy <Roy.mail.net@gmail.com>2023-05-09 16:10:17 +0300
commitaf4e99d71390d050e321e4de3530b2774f84ba0c (patch)
treee7af146405e3ca582870deb9481b8f8e037f7445 /Software/Visual_Studio/PPC/Tango.PPC.UI/ViewModels/LoginViewVM.cs
parent34a674da227985f0dc5b24d2f79cbcfe49a31b04 (diff)
downloadTango-af4e99d71390d050e321e4de3530b2774f84ba0c.tar.gz
Tango-af4e99d71390d050e321e4de3530b2774f84ba0c.zip
Added loading video on Eureka.
Diffstat (limited to 'Software/Visual_Studio/PPC/Tango.PPC.UI/ViewModels/LoginViewVM.cs')
-rw-r--r--Software/Visual_Studio/PPC/Tango.PPC.UI/ViewModels/LoginViewVM.cs9
1 files changed, 9 insertions, 0 deletions
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 ec316989f..07b58e55f 100644
--- a/Software/Visual_Studio/PPC/Tango.PPC.UI/ViewModels/LoginViewVM.cs
+++ b/Software/Visual_Studio/PPC/Tango.PPC.UI/ViewModels/LoginViewVM.cs
@@ -13,6 +13,7 @@ using Tango.PPC.Common.Authentication;
using Tango.BL.Entities;
using Tango.BL.Enumerations;
using Tango.Logging;
+using Tango.PPC.UI.Views;
namespace Tango.PPC.UI.ViewModels
{
@@ -95,6 +96,14 @@ namespace Tango.PPC.UI.ViewModels
if (!AuthenticationProvider.AuthenticationRequired)
{
LogManager.Log("Application is ready! Navigating to home module...");
+
+ if (BuildProvider.IsEureka)
+ {
+ var secondsPassed = (DateTime.Now - LoadingView.VideoStartTime).TotalSeconds;
+ var secondsToHold = Math.Max(10 - secondsPassed, 0);
+ await Task.Delay(TimeSpan.FromSeconds(secondsToHold));
+ }
+
await NavigationManager.NavigateTo(NavigationView.HomeModule);
IsLoading = false;
}