Exemple #1
0
        public void NewPlayerCreated(object sender, NewPlayerCreatedArgs e)
        {
            if (e.playerName != null)
            {
                int playerID = currentGame.GetLowestEmptyPlayerID();
                currentGame.players.Add(new Player(playerID, e.playerName));

                currentGame.players.Sort();

                PopulatePlayersField();
                needToSave = true;
            }
        }
Exemple #2
0
        public virtual void OnNewPlayerCreated(NewPlayerCreatedArgs e)
        {
            EventHandler <NewPlayerCreatedArgs> handler = NewPlayerCreated;

            handler?.Invoke(this, e);
        }
Exemple #3
0
 public NewPlayer()
 {
     args = new NewPlayerCreatedArgs();
     InitializeComponent();
 }