From 83975c98bff414c327dfda17bac6240ff150e26b Mon Sep 17 00:00:00 2001 From: itn3000 Date: Fri, 30 Aug 2024 02:38:38 +0900 Subject: [PATCH] commandline WIP(#9) --- src/WEventViewer/App.axaml.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/WEventViewer/App.axaml.cs b/src/WEventViewer/App.axaml.cs index 90a7766..53515ba 100644 --- a/src/WEventViewer/App.axaml.cs +++ b/src/WEventViewer/App.axaml.cs @@ -21,7 +21,10 @@ public override void OnFrameworkInitializationCompleted() collection.AddSingleton(); collection.AddSingleton(provider => new ViewModelFactoryServiceProvider(provider)); collection.AddSingleton(); - collection.AddSingleton(); + if (ApplicationLifetime is IClassicDesktopStyleApplicationLifetime classic) + { + collection.AddSingleton(provider => new OpenLogWindowViewModel() { }); + } collection.AddSingleton(provider => { return new MainWindow(provider.GetRequiredService())