Ejemplo n.º 1
0
        public void AddPlayer()
        {
            if (CanAddPlayer)
            {
                RosterPlayerIDLabel r = new RosterPlayerIDLabel("Player");

                pnlList.Controls.Add(r);
                r.Margin = new Padding(0);
                r.Width  = r.Parent.Width;

                OnPlayerCountChanged(EventArgs.Empty);
            }
        }
Ejemplo n.º 2
0
        public void RemovePlayer(RosterPlayerIDLabel player)
        {
            foreach (Control c in pnlList.Controls)
            {
                if (c is RosterPlayerIDLabel)
                {
                    RosterPlayerIDLabel r = c as RosterPlayerIDLabel;

                    if (c.Text == player.Text)
                    {
                        ;
                    }
                }
            }
        }