Example #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);
                }
            }
        }
Example #2
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);
                }
            }
        }
Example #3
0
 private void Play(PictureBox picture, CardSet player, Label placar)
 {
     player.PutTop(_deck.GetTop());
     Refresh(picture, player, placar);
 }
Example #4
0
 private void Play(PictureBox picture, CardSet player, Label placar)
 {
     player.PutTop(_deck.GetTop());
     Refresh(picture, player, placar);
 }