Skip to content

Commit

Permalink
commit to fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Zawodowiec1532 committed Dec 31, 2017
1 parent 5539e26 commit 01ddf42
Showing 1 changed file with 2 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,23 +4,13 @@ namespace Hearthstone_Deck_Tracker.Windows.MainWindowControls
{
public partial class DeckChartsView
{
private Deck _deck;

public DeckChartsView()
{
InitializeComponent();
}

public void SetDeck(Deck deck)
{
((DeckChartsViewModel)DataContext).Deck = deck;
_deck = deck;
}
public void SetDeck(Deck deck) => ((DeckChartsViewModel)DataContext).Deck = deck;

public void ReloadUI()
{
if(_deck != null)
((DeckChartsViewModel)DataContext).Deck = _deck;
}
public void ReloadUI() => ((DeckChartsViewModel)DataContext).Update();
}
}

0 comments on commit 01ddf42

Please sign in to comment.