예제 #1
0
        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);
                }
            }
        }
예제 #2
0
 private void btnCima_Click(object sender, EventArgs e)
 {
     _deck.PutTop(_hand.GetBottom());
     RefreshPanel(pnlCards, _deck);
     RefreshPanel(pnlHand, _hand);
 }
예제 #3
0
        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);
                }
            }
        }