private void AddCharacter() { if (txtAddChar.Text != "" && ci.CheckCharacterExists(txtAddChar.Text) == false) { Interface res = ci.AddCharacter(txtAddChar.Text, flwCharButtons.Width - 7, flwCharScreen.Size); flwCharButtons.Controls.Add(res.charButton); res.charButton.Click += new EventHandler(CharButton_Click); flwCharScreen.Controls.Add(res.charPanel); res.charPanel.Controls.Add(res.deleteButton); res.deleteButton.Click += new EventHandler(CharDeleteButton_Click); txtAddChar.Text = ""; Character c = new Character(); c.charName = ci.charName; //c.charClass.attributes. } else if (ci.CheckCharacterExists(txtAddChar.Text) == true) { MessageBox.Show(txtAddChar.Text + " already exists as a Character!"); txtAddChar.Text = ""; } }