Пример #1
0
        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);
        }
Пример #2
0
 private void UpdateExpansionIcons() => SetIcons.Update(_newDeck);