private void charEdit_Click(object sender, EventArgs e) { if (comboAccount.SelectedItem != null && comboChar.SelectedItem != null) { Character.Edit formEditChr = new Character.Edit(); formEditChr.AccountName = comboAccount.Text; formEditChr.CharacterName = comboChar.Text; formEditChr.ShowDialog(); } }