/// <summary> /// Inserts all cards except those from an exempt list /// </summary> /// <param name="except">The cards to NOT add to this deck</param> private void InsertAllCards(List <PlayingCard> except) { for (int suitVal = 0; suitVal < 4; suitVal++) { for (int rankVal = 1; rankVal < 14; rankVal++) { var card = new PlayingCard((CardRank)rankVal, (CardSuit)suitVal); if (except.Contains(card)) { continue; } cards.Add(card); } } }
/// <summary> /// Creates a new card event args instance /// </summary> /// <param name="card">The card for this event</param> public CardEventArgs(PlayingCard card) { Card = card; }