jellyfin-server/MediaBrowser.Common/UI/Splash.xaml.cs

33 lines
852 B
C#
Raw Normal View History

using MahApps.Metro.Controls;
using MediaBrowser.Model.Progress;
using System;
using System.Windows;
namespace MediaBrowser.Common.UI
{
/// <summary>
/// Interaction logic for Splash.xaml
/// </summary>
2012-08-25 17:05:41 +00:00
public partial class Splash : MetroWindow
{
public Splash(Progress<TaskProgress> progress)
{
InitializeComponent();
2012-09-11 19:37:14 +00:00
progress.ProgressChanged += ProgressChanged;
Loaded+=SplashLoaded;
}
2012-09-11 19:37:14 +00:00
void ProgressChanged(object sender, TaskProgress e)
{
2012-09-17 18:47:51 +00:00
lblProgress.Text = e.Description + "...";
}
2012-09-11 19:37:14 +00:00
private void SplashLoaded(object sender, RoutedEventArgs e)
{
2012-08-25 17:05:41 +00:00
// Setting this in markup throws an exception at runtime
ShowTitleBar = false;
}
}
}