mirror of
https://gitlab.com/2009scape/Saradomin-Launcher.git
synced 2026-08-01 14:19:14 -06:00
33 lines
No EOL
834 B
C#
33 lines
No EOL
834 B
C#
using Avalonia;
|
|
using Avalonia.Controls.ApplicationLifetimes;
|
|
using Avalonia.Markup.Xaml;
|
|
using Glitonea;
|
|
using Glitonea.Mvvm;
|
|
using PropertyChanged;
|
|
using Saradomin.Views.Windows;
|
|
|
|
namespace Saradomin
|
|
{
|
|
[DoNotNotify]
|
|
public class App : Application
|
|
{
|
|
public static Messenger Messenger { get; private set; }
|
|
|
|
public override void Initialize()
|
|
{
|
|
AvaloniaXamlLoader.Load(this);
|
|
GlitoneaCore.Initialize();
|
|
Messenger = new Messenger();
|
|
}
|
|
|
|
public override void OnFrameworkInitializationCompleted()
|
|
{
|
|
if (ApplicationLifetime is IClassicDesktopStyleApplicationLifetime desktop)
|
|
{
|
|
desktop.MainWindow = new MainWindow();
|
|
}
|
|
|
|
base.OnFrameworkInitializationCompleted();
|
|
}
|
|
}
|
|
} |