private void registerPlayer(Player p)
        {
            // Add to playerlist
            PlayerList.Add(p);

            // Create TabPage for new player
            mainWindow.tcMain.TabPages.Add(p.Name, p.Name);
            TabPage tp = mainWindow.tcMain.TabPages[p.Name];
            tp.BackColor = System.Drawing.Color.White;

               // mainWindow.listView1.Items.Add(p.Name);
        }
Beispiel #2
0
 private void setCharacterToPlayer(Player player, Characters character)
 {
     player.SelectedCharacter = character;
 }