diff options
| author | Eric Reed <ebr@mediabrowser3.com> | 2013-04-16 15:16:30 -0400 |
|---|---|---|
| committer | Eric Reed <ebr@mediabrowser3.com> | 2013-04-16 15:16:30 -0400 |
| commit | eb9d11cf5748ccf6272c6b0462c8c9c12459e590 (patch) | |
| tree | 58dae31e77a74cabb130c52c43036afdb8cb368e | |
| parent | d254ecfb221542b35fd7fa9abfc9b662a8d1ebb7 (diff) | |
| parent | 14dd0426f57b529094c7d0da86bc611ce1506098 (diff) | |
Merge branch 'master' of https://github.com/MediaBrowser/MediaBrowser
5 files changed, 61 insertions, 0 deletions
diff --git a/MediaBrowser.ServerApplication/ApplicationHost.cs b/MediaBrowser.ServerApplication/ApplicationHost.cs index 11a262ef8..5d630180b 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; @@ -170,6 +171,21 @@ namespace MediaBrowser.ServerApplication private 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> /// <returns>Task.</returns> diff --git a/MediaBrowser.ServerApplication/MediaBrowser.ServerApplication.csproj b/MediaBrowser.ServerApplication/MediaBrowser.ServerApplication.csproj index cee13f574..f3da684eb 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.xaml new file mode 100644 index 000000000..a9463ebb4 --- /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.cs new file mode 100644 index 000000000..3f471612f --- /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(); + } + } +} diff --git a/MediaBrowser.sln b/MediaBrowser.sln index f9f5e9436..eb3251f74 100644 --- a/MediaBrowser.sln +++ b/MediaBrowser.sln @@ -173,4 +173,7 @@ Global GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE EndGlobalSection + GlobalSection(Performance) = preSolution + HasPerformanceSessions = true + EndGlobalSection EndGlobal |
