mlaumcherb/Млаумчерб.Клиент/Приложение.axaml.cs

28 lines
818 B
C#
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

using Avalonia;
using Avalonia.Controls.ApplicationLifetimes;
using Avalonia.Markup.Xaml;
namespace Млаумчерб.Клиент;
public class Приложение : Application
{
public static readonly LauncherLogger Логгер = new();
public override void Initialize()
{
Логгер.LogInfo(nameof(Приложение), "приложение запущено");
AvaloniaXamlLoader.Load(this);
}
public override void OnFrameworkInitializationCompleted()
{
if (ApplicationLifetime is IClassicDesktopStyleApplicationLifetime desktop)
{
desktop.MainWindow = new Окне();
}
base.OnFrameworkInitializationCompleted();
}
public static Настройки Настройки = new();
}