mirror of
https://github.com/islehorse/HISP.git
synced 2025-04-06 21:25:42 +12:00
31 lines
761 B
C#
31 lines
761 B
C#
using Avalonia;
|
|
using Avalonia.Controls.ApplicationLifetimes;
|
|
using Avalonia.Markup.Xaml;
|
|
using HISP.Server;
|
|
using MPN00BS.ViewModels;
|
|
|
|
namespace MPN00BS
|
|
{
|
|
public partial class App : Application
|
|
{
|
|
public App()
|
|
{
|
|
this.DataContext = new HispViewModel();
|
|
}
|
|
|
|
public override void Initialize()
|
|
{
|
|
AvaloniaXamlLoader.Load(this);
|
|
}
|
|
|
|
public override void OnFrameworkInitializationCompleted()
|
|
{
|
|
if (ApplicationLifetime is IClassicDesktopStyleApplicationLifetime desktop)
|
|
{
|
|
desktop.MainWindow = new MpOrSp();
|
|
}
|
|
|
|
base.OnFrameworkInitializationCompleted();
|
|
}
|
|
}
|
|
}
|