2019-11-13 19:26:04 +00:00
|
|
|
using Avalonia;
|
|
|
|
using Avalonia.Markup.Xaml;
|
2019-11-13 19:40:30 +00:00
|
|
|
using Avalonia.Controls.ApplicationLifetimes;
|
2019-11-13 19:26:04 +00:00
|
|
|
|
|
|
|
namespace BFR
|
|
|
|
{
|
|
|
|
public class App : Application
|
|
|
|
{
|
2019-11-13 19:40:30 +00:00
|
|
|
public override void Initialize() =>
|
2019-11-13 19:26:04 +00:00
|
|
|
AvaloniaXamlLoader.Load(this);
|
2019-11-13 19:40:30 +00:00
|
|
|
|
|
|
|
public override void OnFrameworkInitializationCompleted()
|
|
|
|
{
|
|
|
|
switch (ApplicationLifetime)
|
|
|
|
{
|
|
|
|
case IClassicDesktopStyleApplicationLifetime desktop:
|
|
|
|
desktop.MainWindow = new MainWindow();
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
base.OnFrameworkInitializationCompleted();
|
2019-11-13 19:26:04 +00:00
|
|
|
}
|
2019-11-13 19:40:30 +00:00
|
|
|
}
|
2019-11-13 19:26:04 +00:00
|
|
|
}
|