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 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 Play(PictureBox picture, CardSet player, Label placar) { player.PutTop(_deck.GetTop()); Refresh(picture, player, placar); }