mirror of
https://github.com/JasonYANG170/logicanalyzer.git
synced 2024-11-23 20:16:29 +00:00
25 lines
630 B
C#
25 lines
630 B
C#
|
using Avalonia;
|
||
|
using Avalonia.Controls.ApplicationLifetimes;
|
||
|
using Avalonia.Markup.Xaml;
|
||
|
|
||
|
namespace LogicAnalyzerMultiplatform
|
||
|
{
|
||
|
public partial class App : Application
|
||
|
{
|
||
|
public override void Initialize()
|
||
|
{
|
||
|
AvaloniaXamlLoader.Load(this);
|
||
|
}
|
||
|
|
||
|
public override void OnFrameworkInitializationCompleted()
|
||
|
{
|
||
|
if (ApplicationLifetime is IClassicDesktopStyleApplicationLifetime desktop)
|
||
|
{
|
||
|
desktop.MainWindow = new MainWindow();
|
||
|
}
|
||
|
|
||
|
base.OnFrameworkInitializationCompleted();
|
||
|
}
|
||
|
}
|
||
|
}
|