using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows; using System.Windows.Controls; using System.Windows.Data; using System.Windows.Documents; using System.Windows.Input; 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 { /// /// Interaction logic for LoadingView.xaml /// public partial class LoadingView : UserControl { public static DateTime VideoStartTime { get; set; } public LoadingView() { InitializeComponent(); var buildProvider = TangoIOC.Default.GetInstance(); var appManager = TangoIOC.Default.GetInstance(); if (buildProvider.IsEureka) { VideoStartTime = DateTime.Now; videoPlayer.Source = new Uri(appManager.StartPath + "\\Intro.wmv", UriKind.Absolute); videoPlayer.MediaOpened += (_, __) => VideoStartTime = DateTime.Now; videoPlayer.Play(); } } } }