From e33e2a1bb54b5378d13e597e52465da4f1cf5059 Mon Sep 17 00:00:00 2001 From: jamckee Date: Sun, 5 May 2019 14:18:17 -0600 Subject: [PATCH] Initital filter display for additional stats --- LarkatorGUI/MainWindow.xaml | 14 +++++++------- LarkatorGUI/MainWindow.xaml.cs | 8 ++++++++ 2 files changed, 15 insertions(+), 7 deletions(-) diff --git a/LarkatorGUI/MainWindow.xaml b/LarkatorGUI/MainWindow.xaml index 4e4d98e..4937d0e 100644 --- a/LarkatorGUI/MainWindow.xaml +++ b/LarkatorGUI/MainWindow.xaml @@ -378,13 +378,13 @@ - - - - - - - + + + + + + + diff --git a/LarkatorGUI/MainWindow.xaml.cs b/LarkatorGUI/MainWindow.xaml.cs index a30f190..a6e363b 100644 --- a/LarkatorGUI/MainWindow.xaml.cs +++ b/LarkatorGUI/MainWindow.xaml.cs @@ -757,6 +757,14 @@ private void UpdateSearchResults(IList searches) ShowCounts = true; ResultTotalCount = ShowTames ? sourceDinos.Sum(species => species.Value.Count()) : total; ResultMatchingCount = ListResults.Count; + + this.resultsList.Columns["health"].Visibility="{ Binding Source = { StaticResource Model }, Path = Settings.showHealth, Mode = TwoWay}"; + this.resultsList.Columns["health"].Visibility = "{ Binding Source = { StaticResource Model }, Path = Settings.showHealth, Mode = TwoWay}"; + this.resultsList.Columns["health"].Visibility = "{ Binding Source = { StaticResource Model }, Path = Settings.showHealth, Mode = TwoWay}"; + this.resultsList.Columns["health"].Visibility = "{ Binding Source = { StaticResource Model }, Path = Settings.showHealth, Mode = TwoWay}"; + this.resultsList.Columns["health"].Visibility = "{ Binding Source = { StaticResource Model }, Path = Settings.showHealth, Mode = TwoWay}"; + this.resultsList.Columns["health"].Visibility = "{ Binding Source = { StaticResource Model }, Path = Settings.showHealth, Mode = TwoWay}"; + } ((CollectionViewSource)Resources["OrderedResults"]).View.Refresh();