feat(03-08): DI registration + MainWindow wiring for Search and Duplicates tabs
- App.xaml.cs: register ISearchService, SearchCsvExportService, SearchHtmlExportService, SearchViewModel, SearchView, IDuplicatesService, DuplicatesHtmlExportService, DuplicatesViewModel, DuplicatesView - MainWindow.xaml: add x:Name to SearchTabItem and DuplicatesTabItem (remove FeatureTabBase stubs) - MainWindow.xaml.cs: wire SearchTabItem.Content and DuplicatesTabItem.Content via DI
This commit is contained in:
@@ -26,6 +26,12 @@ public partial class MainWindow : Window
|
||||
// Replace Storage tab placeholder with the DI-resolved StorageView
|
||||
StorageTabItem.Content = serviceProvider.GetRequiredService<StorageView>();
|
||||
|
||||
// Replace Search tab placeholder with the DI-resolved SearchView
|
||||
SearchTabItem.Content = serviceProvider.GetRequiredService<SearchView>();
|
||||
|
||||
// Replace Duplicates tab placeholder with the DI-resolved DuplicatesView
|
||||
DuplicatesTabItem.Content = serviceProvider.GetRequiredService<DuplicatesView>();
|
||||
|
||||
// Replace Settings tab placeholder with the DI-resolved SettingsView
|
||||
SettingsTabItem.Content = serviceProvider.GetRequiredService<SettingsView>();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user