From a129c93c42ee02aa7ecdb9227552d18eac034b98 Mon Sep 17 00:00:00 2001 From: RedShirtMB Mark Linton redshirt linton Date: Sun, 19 Aug 2012 11:01:43 -0700 Subject: Updated splashscreen to report progress Added default image (need to change later) --- MediaBrowser.Common/UI/Splash.xaml | 10 ++++++---- MediaBrowser.Common/UI/Splash.xaml.cs | 11 ++++++++++- 2 files changed, 16 insertions(+), 5 deletions(-) (limited to 'MediaBrowser.Common/UI') diff --git a/MediaBrowser.Common/UI/Splash.xaml b/MediaBrowser.Common/UI/Splash.xaml index 9bf1c8364c..3927017f9c 100644 --- a/MediaBrowser.Common/UI/Splash.xaml +++ b/MediaBrowser.Common/UI/Splash.xaml @@ -1,9 +1,11 @@  - - + Title="SplashScreen" Height="346" Width="600" ShowInTaskbar="False" ResizeMode="NoResize" WindowStartupLocation="CenterScreen" + WindowState="Normal" WindowStyle="SingleBorderWindow" Background="Black"> + + + + diff --git a/MediaBrowser.Common/UI/Splash.xaml.cs b/MediaBrowser.Common/UI/Splash.xaml.cs index e136baa191..6d1d313e81 100644 --- a/MediaBrowser.Common/UI/Splash.xaml.cs +++ b/MediaBrowser.Common/UI/Splash.xaml.cs @@ -21,9 +21,18 @@ namespace MediaBrowser.Common.UI /// public partial class Splash : Window { - public Splash(IProgress progress) + + public Splash(Progress progress) { InitializeComponent(); + + progress.ProgressChanged += progress_ProgressChanged; + } + + void progress_ProgressChanged(object sender, TaskProgress e) + { + this.lblProgress.Content = e.Description; + this.pbProgress.Value = (double)e.PercentComplete; } } } -- cgit v1.2.3