Example #1
0
        private void btnCreatePlayer_Click(object sender, EventArgs e)
        {
            Player = new Player();

            Player.CreatePlayer(txtFirstName.Text, txtLastName.Text);
            Player.AddMoney(1000000000);
            Player.SetColor(Convert.ToInt32(txtColorR.Text), Convert.ToInt32(txtColorG.Text), Convert.ToInt32(txtColorB.Text));
            Player.CurrentTile = myListOfTiles[0];

            myListOfPlayers.Add(Player);
            trigger.myTriggerPlayerList.Add(Player);

            AddPlayersToListBox();

            listBoxPlayers.Enabled = true;
        }