diff --git a/src/TableCloth/Models/DetailPageArgumentModel.cs b/src/TableCloth/Models/DetailPageArgumentModel.cs index 1364cf72..becaa8e3 100644 --- a/src/TableCloth/Models/DetailPageArgumentModel.cs +++ b/src/TableCloth/Models/DetailPageArgumentModel.cs @@ -23,7 +23,8 @@ public DetailPageArgumentModel( bool? installHancomOfficeViewer = default, bool? installRaiDrive = default, bool? enableInternetExplorerMode = default, - bool showCommandLineHelp = default) + bool showCommandLineHelp = default, + string currentSearchString = default) { SelectedService = selectedService; EnableMicrophone = enableMicrophone; @@ -38,6 +39,7 @@ public DetailPageArgumentModel( EnableInternetExplorerMode = enableInternetExplorerMode; ShowCommandLineHelp = showCommandLineHelp; BuiltFromCommandLine = builtFromCommandLine; + CurrentSearchString = currentSearchString; } public bool BuiltFromCommandLine { get; private set; } = false; @@ -66,7 +68,7 @@ public DetailPageArgumentModel( public bool ShowCommandLineHelp { get; private set; } - public string CurrentSearchString { get; set; } + public string CurrentSearchString { get; private set; } public TableClothConfiguration GetTableClothConfiguration() { diff --git a/src/TableCloth/Pages/CatalogPage.xaml.cs b/src/TableCloth/Pages/CatalogPage.xaml.cs index 09d27851..8e31c891 100644 --- a/src/TableCloth/Pages/CatalogPage.xaml.cs +++ b/src/TableCloth/Pages/CatalogPage.xaml.cs @@ -177,7 +177,7 @@ private void SiteCatalog_KeyDown(object sender, KeyEventArgs e) { NavigationService.Navigate( new Uri("Pages/DetailPage.xaml", UriKind.Relative), - new DetailPageArgumentModel(data, builtFromCommandLine: false) { CurrentSearchString = SiteCatalogFilter.Text }); + new DetailPageArgumentModel(data, builtFromCommandLine: false, currentSearchString: SiteCatalogFilter.Text)); } } } @@ -199,7 +199,7 @@ private void SiteCatalog_MouseDoubleClick(object sender, MouseButtonEventArgs e) { NavigationService.Navigate( new Uri("Pages/DetailPage.xaml", UriKind.Relative), - new DetailPageArgumentModel(data, builtFromCommandLine: false) { CurrentSearchString = SiteCatalogFilter.Text }); + new DetailPageArgumentModel(data, builtFromCommandLine: false, currentSearchString: SiteCatalogFilter.Text)); } }