aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLukePulverenti Luke Pulverenti luke pulverenti <LukePulverenti Luke Pulverenti luke.pulverenti@gmail.com>2012-08-19 17:49:14 -0400
committerLukePulverenti Luke Pulverenti luke pulverenti <LukePulverenti Luke Pulverenti luke.pulverenti@gmail.com>2012-08-19 17:49:14 -0400
commit87245d11fc6f129057f2dcd7d569423259f05f28 (patch)
tree76abdaaa27beea7328a9121f080e32c23110f607
parent7e077ed913a29bed23e2d92c1201fdc4d3495bc2 (diff)
Updated the splash screen to log progress messages
-rw-r--r--MediaBrowser.Common/UI/Splash.xaml.cs21
1 files changed, 8 insertions, 13 deletions
diff --git a/MediaBrowser.Common/UI/Splash.xaml.cs b/MediaBrowser.Common/UI/Splash.xaml.cs
index c8653646c..504179291 100644
--- a/MediaBrowser.Common/UI/Splash.xaml.cs
+++ b/MediaBrowser.Common/UI/Splash.xaml.cs
@@ -1,19 +1,8 @@
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.Runtime.InteropServices;
-using System.Windows.Media;
-using System.Windows.Media.Imaging;
+using System.Windows;
using System.Windows.Interop;
-using System.Windows.Shapes;
-
+using MediaBrowser.Common.Logging;
using MediaBrowser.Model.Progress;
namespace MediaBrowser.Common.UI
@@ -40,6 +29,12 @@ namespace MediaBrowser.Common.UI
void progress_ProgressChanged(object sender, TaskProgress e)
{
+ // If logging has loaded, put a message in the log.
+ if (Logger.LoggerInstance != null)
+ {
+ Logger.LogInfo(e.Description);
+ }
+
this.lblProgress.Content = e.Description;
this.pbProgress.Value = (double)e.PercentComplete;
}