aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/PPC/Tango.PPC.UI/Views/LoadingView.xaml.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/Views/LoadingView.xaml.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/Views/LoadingView.xaml.cs')
-rw-r--r--Software/Visual_Studio/PPC/Tango.PPC.UI/Views/LoadingView.xaml.cs16
1 files changed, 16 insertions, 0 deletions
diff --git a/Software/Visual_Studio/PPC/Tango.PPC.UI/Views/LoadingView.xaml.cs b/Software/Visual_Studio/PPC/Tango.PPC.UI/Views/LoadingView.xaml.cs
index a1214a0df..4616ea438 100644
--- a/Software/Visual_Studio/PPC/Tango.PPC.UI/Views/LoadingView.xaml.cs
+++ b/Software/Visual_Studio/PPC/Tango.PPC.UI/Views/LoadingView.xaml.cs
@@ -12,6 +12,9 @@ using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
+using Tango.Core.DI;
+using Tango.PPC.Common.Application;
+using Tango.PPC.Common.Build;
namespace Tango.PPC.UI.Views
{
@@ -20,9 +23,22 @@ namespace Tango.PPC.UI.Views
/// </summary>
public partial class LoadingView : UserControl
{
+ public static DateTime VideoStartTime { get; set; }
+
public LoadingView()
{
InitializeComponent();
+
+ var buildProvider = TangoIOC.Default.GetInstance<IBuildProvider>();
+ var appManager = TangoIOC.Default.GetInstance<IPPCApplicationManager>();
+
+ if (buildProvider.IsEureka)
+ {
+ VideoStartTime = DateTime.Now;
+ videoPlayer.Source = new Uri(appManager.StartPath + "\\Intro.wmv", UriKind.Absolute);
+ videoPlayer.MediaOpened += (_, __) => VideoStartTime = DateTime.Now;
+ videoPlayer.Play();
+ }
}
}
}