- tweak: Dependency injection think

This commit is contained in:
2024-12-21 13:11:30 +03:00
parent 9a1bd44a6e
commit 42fde38db6
27 changed files with 541 additions and 242 deletions

View File

@@ -4,8 +4,16 @@ namespace Nebula.Launcher.Views;
public partial class MainWindow : Window
{
// This constructor is used when the view is created by the XAML Previewer
public MainWindow()
{
InitializeComponent();
}
// This constructor is used when the view is created via dependency injection
public MainWindow(MainView mainView)
: this()
{
Content = mainView;
}
}