public void ClearBoard(IDeckDict <SolitaireCard> thisList)
 {
     if (thisList.Count != 12)
     {
         throw new BasicBlankException("Must have 12 cards");
     }
     ClearBoard();
     _thisMod.Score = thisList.Count;
     ClockList !.ForEach(thisClock =>
     {
         thisClock.CardList.ReplaceAllWithGivenItem(thisList.First());
         thisClock.IsEnabled = true;
         thisList.RemoveFirstItem();
     });
 }
Exemple #2
0
 public void NewList(IDeckDict <D> whatList)
 {
     if (whatList.Count == 0)
     {
         return;
     }
     CurrentCard            = whatList.First();
     CurrentCard.IsUnknown  = false;
     CurrentCard.IsSelected = false;
     CurrentCard.Drew       = false;
     whatList.RemoveFirstItem(); //try this way.  could fix at least one of the problems.
     whatList.ForEach(Items =>
     {
         Items.IsSelected = false;
         Items.Drew       = false;
     });
     _objectList.ReplaceRange(whatList); // because we are replacing the entire range.
     _previousNum = _objectList.Count;
 }