35 lines
936 B
C#
35 lines
936 B
C#
using BreCalClient.misc.Model;
|
|
using BreCalClient.Properties;
|
|
using System.Windows;
|
|
|
|
namespace BreCalClient
|
|
{
|
|
/// <summary>
|
|
/// Interaction logic for App.xaml
|
|
/// </summary>
|
|
public partial class App : Application
|
|
{
|
|
public static Participant Participant { get; set; } = new Participant();
|
|
|
|
private void Application_Exit(object sender, ExitEventArgs e)
|
|
{
|
|
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();
|
|
}
|
|
}
|
|
}
|
|
}
|