diff --git a/DrawPool/Core/DrawPoolHelpers.cs b/DrawPool/Core/DrawPoolHelpers.cs index 670b163..6824b91 100644 --- a/DrawPool/Core/DrawPoolHelpers.cs +++ b/DrawPool/Core/DrawPoolHelpers.cs @@ -10,7 +10,7 @@ public static class DrawPoolHelpers /// /// Fixes the card's "Is Created" indicator and merges them into one big pile. /// - /// The list of cards cards. + /// The list of drawable Cards. /// public static List FixCreatedCards(this List cards) { diff --git a/DrawPool/DrawLogic/WitchWoodPiperControl.cs b/DrawPool/DrawLogic/WitchWoodPiperControl.cs index 208c669..855ebc7 100644 --- a/DrawPool/DrawLogic/WitchWoodPiperControl.cs +++ b/DrawPool/DrawLogic/WitchWoodPiperControl.cs @@ -103,7 +103,7 @@ public void DoMath() public void LoadCards() { this.QueryDeck = BuildQueryDeck(); - this.CardList.Update(QueryDeck, true); + this.CardList.Update(QueryDeck.FixCreatedCards(), true); } /// @@ -121,6 +121,7 @@ public void PlayerHandMouseOver(Card card) if (CheckDeckChanged()) { LoadCards(); + // ToDo: Should do math be moved into the load cards process? DoMath(); } ShowDisplay(new CurtainCall { CallingView = ViewModes.WitchWoodPiper, ShouldShow = true }, new EventArgs()); diff --git a/DrawPool/DrawPoolWindow.cs b/DrawPool/DrawPoolWindow.cs index 4e03030..2b00b29 100644 --- a/DrawPool/DrawPoolWindow.cs +++ b/DrawPool/DrawPoolWindow.cs @@ -4,6 +4,7 @@ using Hearthstone_Deck_Tracker.API; using MahApps.Metro.Controls; using System; + using System.Reflection; using System.Windows; using Settings = DrawPool.Properties.Settings; @@ -120,7 +121,7 @@ private void InitializeWinOpts() /// public void InitializeOpts() { - var uc = (UserOptionsControl)DisplayBox.FindChild(ViewModes.Options.ToString()); + UserOptionsControl uc = (UserOptionsControl)DisplayBox.FindChild(ViewModes.Options.ToString()); if (uc != null) { uc.btnToggle.Checked += (sender, args) => @@ -136,9 +137,10 @@ public void InitializeOpts() uc.btnDone.Click += (sender, args) => { uc.btnToggle.IsChecked = false; - uc.Visibility = Visibility.Collapsed; + uc.Visibility = Visibility.Hidden; Visibility = Visibility.Collapsed; }; + uc.lblVersionValue.Content = Assembly.GetExecutingAssembly().GetName().Version.ToString(); } } @@ -148,12 +150,9 @@ public void InitializeOpts() public void Reset() { // ToDo : see how this loop needs to evolve with mechanics for recruit - foreach (var dc in DisplayBox.Children) + foreach (IDraw dc in DisplayBox.Children) { - if (dc is IDraw) - { - ((IDraw)dc).Reset(); - } + dc.Reset(); } Visibility = Visibility.Collapsed; } diff --git a/DrawPool/Models/CurtainCall.cs b/DrawPool/Models/CurtainCall.cs index f27e17c..8060a11 100644 --- a/DrawPool/Models/CurtainCall.cs +++ b/DrawPool/Models/CurtainCall.cs @@ -15,7 +15,7 @@ using static Hearthstone_Deck_Tracker.Windows.MessageDialogs; /// - /// Helper for Hiding and showing internal controls + /// Helper for Hiding and showing internal display controls /// public class CurtainCall { diff --git a/DrawPool/Models/DrawDataModel.cs b/DrawPool/Models/DrawDataModel.cs index 8891df2..07d3724 100644 --- a/DrawPool/Models/DrawDataModel.cs +++ b/DrawPool/Models/DrawDataModel.cs @@ -6,7 +6,7 @@ using Card = Hearthstone_Deck_Tracker.Hearthstone.Card; /// - /// Draw Data Model + /// Draw Data View Model /// public class DrawDataModel { diff --git a/DrawPool/Properties/AssemblyInfo.cs b/DrawPool/Properties/AssemblyInfo.cs index 2fb04e8..e976069 100644 --- a/DrawPool/Properties/AssemblyInfo.cs +++ b/DrawPool/Properties/AssemblyInfo.cs @@ -32,5 +32,5 @@ // You can specify all the values or you can default the Build and Revision Numbers // by using the '*' as shown below: // [assembly: AssemblyVersion("1.0.*")] -[assembly: AssemblyVersion("1.0.0.0")] -[assembly: AssemblyFileVersion("1.0.0.0")] +[assembly: AssemblyVersion("1.0.1.1")] +[assembly: AssemblyFileVersion("1.0.1.1")] diff --git a/DrawPool/UserOptionsControl.xaml b/DrawPool/UserOptionsControl.xaml index dc457a1..7836b7b 100644 --- a/DrawPool/UserOptionsControl.xaml +++ b/DrawPool/UserOptionsControl.xaml @@ -57,6 +57,7 @@ + @@ -118,7 +119,7 @@