2012-08-05 00:10:44 +00:00
|
|
|
|
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.Shapes;
|
|
|
|
|
|
|
|
|
|
using MediaBrowser.Model.Progress;
|
|
|
|
|
|
2012-08-05 02:21:38 +00:00
|
|
|
|
namespace MediaBrowser.Common.UI
|
2012-08-05 00:10:44 +00:00
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
2012-08-05 02:21:38 +00:00
|
|
|
|
/// Interaction logic for Splash.xaml
|
2012-08-05 00:10:44 +00:00
|
|
|
|
/// </summary>
|
2012-08-05 02:21:38 +00:00
|
|
|
|
public partial class Splash : Window
|
2012-08-05 00:10:44 +00:00
|
|
|
|
{
|
2012-08-19 18:01:43 +00:00
|
|
|
|
|
|
|
|
|
public Splash(Progress<TaskProgress> progress)
|
2012-08-05 00:10:44 +00:00
|
|
|
|
{
|
|
|
|
|
InitializeComponent();
|
2012-08-19 18:01:43 +00:00
|
|
|
|
|
|
|
|
|
progress.ProgressChanged += progress_ProgressChanged;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void progress_ProgressChanged(object sender, TaskProgress e)
|
|
|
|
|
{
|
|
|
|
|
this.lblProgress.Content = e.Description;
|
|
|
|
|
this.pbProgress.Value = (double)e.PercentComplete;
|
2012-08-05 00:10:44 +00:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|