From 33ccb91b39e9f853c7c4b9f70a9636de4a266bb0 Mon Sep 17 00:00:00 2001 From: Aaron Schultz Date: Fri, 9 Aug 2019 00:44:43 +0200 Subject: [PATCH] Add best price style --- .../StatisticsAnalysisTool/App.xaml | 7 +++- .../StatisticsAnalysisTool/ItemWindow.xaml | 4 +-- .../Models/MarketOrder.cs | 33 +++++++++++++++++++ 3 files changed, 41 insertions(+), 3 deletions(-) diff --git a/StatisticsAnalysisTool/StatisticsAnalysisTool/App.xaml b/StatisticsAnalysisTool/StatisticsAnalysisTool/App.xaml index c9fb1b5ec..fcb2cd4f4 100644 --- a/StatisticsAnalysisTool/StatisticsAnalysisTool/App.xaml +++ b/StatisticsAnalysisTool/StatisticsAnalysisTool/App.xaml @@ -59,7 +59,11 @@ - diff --git a/StatisticsAnalysisTool/StatisticsAnalysisTool/ItemWindow.xaml b/StatisticsAnalysisTool/StatisticsAnalysisTool/ItemWindow.xaml index 5056e17ea..48bc5f0f9 100644 --- a/StatisticsAnalysisTool/StatisticsAnalysisTool/ItemWindow.xaml +++ b/StatisticsAnalysisTool/StatisticsAnalysisTool/ItemWindow.xaml @@ -39,7 +39,7 @@ - @@ -109,7 +109,7 @@ - diff --git a/StatisticsAnalysisTool/StatisticsAnalysisTool/Models/MarketOrder.cs b/StatisticsAnalysisTool/StatisticsAnalysisTool/Models/MarketOrder.cs index 9eb212a0f..7b0e9e590 100644 --- a/StatisticsAnalysisTool/StatisticsAnalysisTool/Models/MarketOrder.cs +++ b/StatisticsAnalysisTool/StatisticsAnalysisTool/Models/MarketOrder.cs @@ -163,5 +163,38 @@ public Style CityStyle { } } + public Style SellPriceMinStyle + { + get + { + switch (BestSellMinPrice) + { + case true: + return Application.Current.FindResource("ListView.Grid.StackPanel.Label.BestPrice") as Style; + case false: + return Application.Current.FindResource("ListView.Grid.StackPanel.Label.Price") as Style; + default: + return Application.Current.FindResource("ListView.Grid.StackPanel.Label.Price") as Style; + } + + } + } + + public Style BuyPriceMaxStyle { + get + { + switch (BestBuyMaxPrice) + { + case true: + return Application.Current.FindResource("ListView.Grid.StackPanel.Label.BestPrice") as Style; + case false: + return Application.Current.FindResource("ListView.Grid.StackPanel.Label.Price") as Style; + default: + return Application.Current.FindResource("ListView.Grid.StackPanel.Label.Price") as Style; + } + + } + } + } } \ No newline at end of file