Skip to content

Commit

Permalink
commandline WIP(#9)
Browse files Browse the repository at this point in the history
  • Loading branch information
itn3000 committed Aug 29, 2024
1 parent 3761551 commit 83975c9
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/WEventViewer/App.axaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,10 @@ public override void OnFrameworkInitializationCompleted()
collection.AddSingleton<EventLogRepository>();
collection.AddSingleton<IViewModelFactory, ViewModelFactoryServiceProvider>(provider => new ViewModelFactoryServiceProvider(provider));
collection.AddSingleton<MainWindowViewModel>();
collection.AddSingleton<OpenLogWindowViewModel>();
if (ApplicationLifetime is IClassicDesktopStyleApplicationLifetime classic)
{
collection.AddSingleton<OpenLogWindowViewModel>(provider => new OpenLogWindowViewModel() { });
}
collection.AddSingleton<MainWindow>(provider =>
{
return new MainWindow(provider.GetRequiredService<IViewModelFactory>())
Expand Down

0 comments on commit 83975c9

Please sign in to comment.