Ejemplo n.º 1
0
 public void RemoveCards(int whichOne)
 {
     if (TempList.Count != 13)
     {
         throw new BasicBlankException("Must have 13 cards to remove the 13 cards");
     }
     TempList.ForEach(tempCard => Piles.RemoveSpecificCardFromColumn(whichOne, tempCard.Deck));
     if (Piles.HasCardInColumn(whichOne))
     {
         var thisCard = Piles.GetLastCard(whichOne);
         Piles.RemoveFromUnknown(thisCard);
     }
     UnselectAllColumns();
 }
Ejemplo n.º 2
0
        public void AddCards(DeckRegularDict <SolitaireCard> thisList)
        {
            int x = 0;

            foreach (var thisPile in Piles.PileList)
            {
                if (x == thisList.Count)
                {
                    break;
                }
                var thisCard = thisList[x];
                Piles.RemoveFromUnknown(thisCard);
                thisPile.CardList.Add(thisCard);
                x++;
            }
        }