public static void RefreshDisplay(TransparencyPanel panel, IList <Card> hand) { ClearDisplay(panel); if (hand.Count > 0) { foreach (Card card in hand) { panel.Controls.Add(card.getDisplay()); } } }
/* * Controls for filling and clearing the panels that hold the images */ public static void ClearDisplay(TransparencyPanel panel) { panel.Controls.Clear(); }