Exemplo n.º 1
0
        private void CreateACharacter()
        {
            CharacterCreationForm form = new CharacterCreationForm(player);

            var result = form.ShowDialog();

            if (result == System.Windows.Forms.DialogResult.OK)
            {
                Core.Units.Character c = form.ReturnCharacter();
                c.Owner = player.UserName;
                player.AddCharacter(c);
                this.flpCharacters.Controls.Add(new ucCharacterInterface(form.ReturnCharacter(), true));
            }
        }