示例#1
0
 /// <summary>
 /// Resets the Control and empties the card list.
 /// </summary>
 public void Reset()
 {
     DrawPoolCardList.Update(new List <Card>(), true);
     ProbabilityLabel.Text = "";
     DeckMixLabel.Text     = "";
     Hide();
 }
示例#2
0
 /// <summary>
 /// Checks the current deck against our stored copy.
 /// </summary>
 /// <param name="currentCards">The current cards.</param>
 public void CheckDeck(List <Card> currentCards)
 {
     if (currentCards.Count() != CurrentCardCount())
     {
         CleanCards(currentCards);
         DrawPoolCardList.Update(currentCards, true);
         DoMath();
     }
 }
示例#3
0
        /// <summary>
        /// Starts the configuration mode for setting the layout.
        /// </summary>
        public void StartConfigMode()
        {
            var card = new Card(HearthDb.Cards.Collectible.Values.FirstOrDefault(c => c.Id == Settings.Default.MinstrelCardId));

            if (card != null)
            {
                TitleBarLabel.Visibility = Visibility.Hidden;
                var Cards = new List <Card>();
                Cards.Add(card);
                DrawPoolCardList.Update(Cards, true);
                ProbabilityLabel.Text = $"X% / Y";
                DeckMixLabel.Text     = $"M/D";
                Visibility            = Visibility.Visible;
            }
        }