private void CheckSteal(CardSet stealer, CardSet stealed, PictureBox pictureStealer, Label placarStealer, PictureBox pictureStealed, Label placarStealed) { if (stealer.Count > 0 && stealed.Count > 0) { if (stealer[0].Value == stealed[0].Value) { MessageBox.Show(string.Format("Robou {0} cartas!!!", stealed.Count)); while (!stealed.IsEmpty) { stealer.PutTop(stealed.GetBottom()); } Refresh(pictureStealer, stealer, placarStealer); Refresh(pictureStealed, stealed, placarStealed); } } }
private void btnCima_Click(object sender, EventArgs e) { _deck.PutTop(_hand.GetBottom()); RefreshPanel(pnlCards, _deck); RefreshPanel(pnlHand, _hand); }
private void CheckSteal(CardSet stealer, CardSet stealed, PictureBox pictureStealer, Label placarStealer, PictureBox pictureStealed, Label placarStealed) { if (stealer.Count > 0 && stealed.Count > 0) { if (stealer[0].Value == stealed[0].Value) { MessageBox.Show(string.Format("Robou {0} cartas!!!", stealed.Count)); while (!stealed.IsEmpty) stealer.PutTop(stealed.GetBottom()); Refresh(pictureStealer, stealer, placarStealer); Refresh(pictureStealed, stealed, placarStealed); } } }