/// <summary> /// Draw a card from the Draw Pile and place it in the Discard Pile. /// </summary> private void DrawCardForDiscardPile() { Hand drawPile = Solitare_Game.GetDrawPile(); if (drawPile.GetCount() > 1) { Card card = Solitare_Game.DrawCard(); Solitare_Game.AddCardToDiscardPile(card); DisplayDrawPile(card); } else if (drawPile.GetCount() == 1) { Card card = Solitare_Game.DrawCard(); Solitare_Game.AddCardToDiscardPile(card); DisplayDrawPile(card); drawPilePictureBox.Image = null; } else if (drawPile.GetCount() == 0) { Solitare_Game.ResetDrawDiscardPiles(); Card card = Solitare_Game.DrawCard(); Solitare_Game.AddCardToDiscardPile(card); DisplayDrawPile(card); } currentlyPlayingCard = false; }