Beispiel #1
0
        private void button10_Click(object sender, EventArgs e)
        {
            ChangePlayer cp = new ChangePlayer(players[9]);
            cp.ShowDialog();
            checkBox10.Text = players[9].name;
            checkBox10.BackColor = players[9].color;
            if (players[9].isHuman)
            {
                textBox10.Text = "HUMAN";
            }
            else
            {
                textBox10.Text = "COMPUTER";
            }

            if (checkBox10.Checked)
            {
                players[9].isActive = true;
            }
        }
Beispiel #2
0
        private void button9_Click(object sender, EventArgs e)
        {
            ChangePlayer cp = new ChangePlayer(players[8]);

            cp.ShowDialog();
            checkBox9.Text      = players[8].name;
            checkBox9.BackColor = players[8].color;
            if (players[8].isHuman)
            {
                textBox9.Text = "HUMAN";
            }
            else
            {
                textBox9.Text = "COMPUTER";
            }

            if (checkBox9.Checked)
            {
                players[8].isActive = true;
            }
        }