public SearchResults(DatabaseUtil DB, DatabaseUtil.DBTable data, XMLUtil.SaveSettings ss, string profilename, List <string> SRS) { InitializeComponent(); SetWindowScreen(this, GetWindowScreen(App.Current.MainWindow)); SearchBar.AddHandler(System.Windows.Controls.Primitives.TextBoxBase.TextChangedEvent, new TextChangedEventHandler(ComboBox_TextChanged)); Data = data; db = DB; ReturnFile = ""; ProfileName = profilename; SaveSettings = ss; BooleanSearchResults = SRS; if (BooleanSearchResults != null) { if (BooleanSearchResults.Count > 0) { AddSearchResults(BooleanSearchResults); } } }