Пример #1
0
        private void lNamePlayer2_Click(object sender, EventArgs e)
        {
            chooseFace = true;
            if (chooseFace == true && choosenCard != null && choosenEnemyCard == null)
            {
                client.EndSteps();
                ENSt.Visible = true;
            }
            CardHeroes player = new CardHeroes(0, Convert.ToInt16(lHealthPlayer2.Text), lNamePlayer2.Text);
            CardHeroes my     = null;

            foreach (CardsForm a in pMe.Controls)
            {
                int        count = pMyArena.Controls.IndexOf(choosenCard);
                CardHeroes cardh = CardHand.ElementAt(count);
                my = cardh;
            }
            client.StepToSend(player, my);
        }