diff --git a/misc/version.txt b/misc/version.txt index 8d9bdca..98f0a1d 100644 --- a/misc/version.txt +++ b/misc/version.txt @@ -1 +1 @@ -1.1.5.0 \ No newline at end of file +1.1.6.0 \ No newline at end of file diff --git a/src/BreCalClient/App.xaml b/src/BreCalClient/App.xaml index e74dc10..376a37a 100644 --- a/src/BreCalClient/App.xaml +++ b/src/BreCalClient/App.xaml @@ -2,7 +2,7 @@ xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:local="clr-namespace:BreCalClient" - StartupUri="MainWindow.xaml" Exit="Application_Exit"> + StartupUri="MainWindow.xaml" Exit="Application_Exit" Startup="Application_Startup" > diff --git a/src/BreCalClient/App.xaml.cs b/src/BreCalClient/App.xaml.cs index 191a183..c4407b8 100644 --- a/src/BreCalClient/App.xaml.cs +++ b/src/BreCalClient/App.xaml.cs @@ -1,4 +1,5 @@ using BreCalClient.misc.Model; +using BreCalClient.Properties; using System.Windows; namespace BreCalClient @@ -14,5 +15,20 @@ namespace BreCalClient { BreCalClient.Properties.Settings.Default.Save(); } + + private void Application_Startup(object sender, StartupEventArgs e) + { + // Window size sanity check + if(Settings.Default.Width == 0) + { + Settings.Default.Width = 800; + Settings.Default.Save(); + } + if(Settings.Default.Height == 0) + { + Settings.Default.Height = 450; + Settings.Default.Save(); + } + } } } diff --git a/src/BreCalClient/BreCalClient.csproj b/src/BreCalClient/BreCalClient.csproj index 6070af2..71fe5e7 100644 --- a/src/BreCalClient/BreCalClient.csproj +++ b/src/BreCalClient/BreCalClient.csproj @@ -8,8 +8,8 @@ True BreCalClient.App ..\..\misc\brecal.snk - 1.1.5.0 - 1.1.5.0 + 1.1.6.0 + 1.1.6.0 Bremen calling client A Windows WPF client for the Bremen calling API. containership.ico diff --git a/src/BreCalClient/EditShipcallControl.xaml b/src/BreCalClient/EditShipcallControl.xaml index c3d7b79..067ec88 100644 --- a/src/BreCalClient/EditShipcallControl.xaml +++ b/src/BreCalClient/EditShipcallControl.xaml @@ -46,7 +46,7 @@