Files
BeWoPlaner/BeWoLauncher/LauncherApp.xaml.cs
2021-09-30 15:31:13 +02:00

47 lines
1.4 KiB
C#

using BeWoLauncher.ServiceProxy;
using BeWoLauncher.WindowImp;
using BS.SharedLauncher;
using BS.SharedLauncher.Information;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Configuration;
using System.Data;
using System.Globalization;
using System.IO;
using System.Linq;
using System.Threading;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Input;
using System.Windows.Markup;
using System.Windows.Threading;
namespace BeWoLauncher
{
/// <summary>
/// Interaktionslogik für "App.xaml"
/// </summary>
public partial class LauncherApp : Application
{
public static MainWindow Window { get; set; }
public static string ShortVersion => "3";
public static string Version => "Version 3.0";
protected override void OnStartup(StartupEventArgs e)
{
base.OnStartup(e);
Session.Dispatcher = Dispatcher;
Session.Application = Current;
ConnectionInformation.LauncherServerAddress = ConnectionInformation.LauncherServerAddressOrigin.ToString();
LauncherServiceFacade.UpdateServerAddresses(ConnectionInformation.LauncherServerAddress);
FrameworkElement.LanguageProperty.OverrideMetadata(typeof(FrameworkElement), new FrameworkPropertyMetadata(XmlLanguage.GetLanguage(CultureInfo.CurrentCulture.IetfLanguageTag)));
}
}
}