The Free Software Media System - Server Backend & API
added splash page
Luke Pulverenti14dd0426f57b
diff --git a/MediaBrowser.ServerApplication/ApplicationHost.cs b/MediaBrowser.ServerApplication/ApplicationHost.csindex 11a262ef8d..5d630180ba 100644--- a/MediaBrowser.ServerApplication/ApplicationHost.cs+++ b/MediaBrowser.ServerApplication/ApplicationHost.cs@@ -42,6 +42,7 @@ using MediaBrowser.Server.Implementations.Udp;using MediaBrowser.Server.Implementations.Updates;using MediaBrowser.Server.Implementations.WebSocket;using MediaBrowser.ServerApplication.Implementations;+using MediaBrowser.ServerApplication.Splash;using MediaBrowser.WebDashboard.Api;using System;using System.Collections.Generic;@@ -169,6 +170,21 @@ namespace MediaBrowser.ServerApplicationprivate Task<IHttpServer> _httpServerCreationTask;+ /// <summary>+ /// Inits this instance.+ /// </summary>+ /// <returns>Task.</returns>+ public override async Task Init()+ {+ var win = new SplashWindow();++ win.Show();++ await base.Init();++ win.Hide();+ }+/// <summary>/// Runs the startup tasks./// </summary>diff --git a/MediaBrowser.ServerApplication/MediaBrowser.ServerApplication.csproj b/MediaBrowser.ServerApplication/MediaBrowser.ServerApplication.csprojindex cee13f5747..f3da684eb0 100644--- a/MediaBrowser.ServerApplication/MediaBrowser.ServerApplication.csproj+++ b/MediaBrowser.ServerApplication/MediaBrowser.ServerApplication.csproj@@ -186,6 +186,9 @@<Compile Include="EntryPoints\RefreshUsersMetadata.cs" /><Compile Include="EntryPoints\StartupWizard.cs" /><Compile Include="EntryPoints\WebSocketEvents.cs" />+ <Compile Include="Splash\SplashWindow.xaml.cs">+ <DependentUpon>SplashWindow.xaml</DependentUpon>+ </Compile><Page Include="App.xaml"><Generator>MSBuild:Compile</Generator><SubType>Designer</SubType>@@ -229,6 +232,10 @@<DependentUpon>MainWindow.xaml</DependentUpon><SubType>Code</SubType></Compile>+ <Page Include="Splash\SplashWindow.xaml">+ <SubType>Designer</SubType>+ <Generator>MSBuild:Compile</Generator>+ </Page></ItemGroup><ItemGroup><Compile Include="Properties\AssemblyInfo.cs">diff --git a/MediaBrowser.ServerApplication/Splash/SplashWindow.xaml b/MediaBrowser.ServerApplication/Splash/SplashWindow.xamlnew file mode 100644index 0000000000..a9463ebb4e--- /dev/null+++ b/MediaBrowser.ServerApplication/Splash/SplashWindow.xaml@@ -0,0 +1,8 @@+<Window x:Class="MediaBrowser.ServerApplication.Splash.SplashWindow"+ xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"+ xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"+ Height="300" Width="400" WindowStartupLocation="CenterScreen" Title="Media Browser Server" ShowInTaskbar="True" WindowStyle="None" BorderThickness="1" BorderBrush="#cccccc" AllowsTransparency="True">+ <Grid>+ <TextBlock>Loading</TextBlock>+ </Grid>+</Window>diff --git a/MediaBrowser.ServerApplication/Splash/SplashWindow.xaml.cs b/MediaBrowser.ServerApplication/Splash/SplashWindow.xaml.csnew file mode 100644index 0000000000..3f471612f2--- /dev/null+++ b/MediaBrowser.ServerApplication/Splash/SplashWindow.xaml.cs@@ -0,0 +1,27 @@+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;++namespace MediaBrowser.ServerApplication.Splash+{+ /// <summary>+ /// Interaction logic for SplashWindow.xaml+ /// </summary>+ public partial class SplashWindow : Window+ {+ public SplashWindow()+ {+ InitializeComponent();+ }+ }+}