public DeckScreenshotWindow(Deck deck, bool deckOnly = false) { InitializeComponent(); _allTags = deck.TagList.ToLowerInvariant().Replace("-", ""); ListViewPlayer.Update(deck.Cards.ToSortedCardList(), true); if (deckOnly) { DeckTitleContainer.Visibility = Collapsed; DeckFormatPanel.Visibility = Collapsed; SetDustPanel.Visibility = Collapsed; BrandContainer.Visibility = Collapsed; } else { DeckTitlePanel.Background = DeckHeaderBackground(deck.Class); LblDeckTitle.Text = deck.Name; LblDeckTag.Text = GetTagText(deck); LblDeckFormat.Text = GetFormatText(deck); LblDustCost.Text = TotalDust(deck).ToString(); ShowFormatIcon(deck); SetIcons.Update(deck); } Height = 35 * ListViewPlayer.Items.Count + (deckOnly ? 0 : EXTRAS_HEIGHT); }
private void UpdateExpansionIcons() => SetIcons.Update(_newDeck);