mlaumcherb/Млаумчерб.Клиент/видимое/Приложение.axaml.cs
2024-09-26 01:10:11 +05:00

24 lines
707 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 override void Initialize()
{
Главне.Логгер.LogInfo(nameof(Приложение), "приложение запущено");
AvaloniaXamlLoader.Load(this);
}
public override void OnFrameworkInitializationCompleted()
{
if (ApplicationLifetime is IClassicDesktopStyleApplicationLifetime desktop)
{
desktop.MainWindow = new Окне();
}
base.OnFrameworkInitializationCompleted();
}
}