//Grabs a random first name using the appropriate combo boxes private void rollFirstNameButton_Click(object sender, EventArgs e) { String name = null; if (raceComboBox.Text == "Human" && genderComboBox.Text == "Male") { name = humanNames.getMaleFirstName(); } else if (raceComboBox.Text == "Human" && genderComboBox.Text == "Female") { name = humanNames.getFemaleFirstName(); } else if (raceComboBox.Text == "Elven" && genderComboBox.Text == "Male") { name = elvenNames.getMaleFirstName(); } else if (raceComboBox.Text == "Elven" && genderComboBox.Text == "Female") { name = elvenNames.getFemaleFirstName(); } else if (raceComboBox.Text == "Dwarven" && genderComboBox.Text == "Male") { name = dwarvenNames.getMaleFirstName(); } else if (raceComboBox.Text == "Dwarven" && genderComboBox.Text == "Female") { name = dwarvenNames.getFemaleFirstName(); } else if (raceComboBox.Text == "Halfling" && genderComboBox.Text == "Male") { name = halflingNames.getMaleFirstName(); } else if (raceComboBox.Text == "Halfling" && genderComboBox.Text == "Female") { name = halflingNames.getFemaleFirstName(); } else if (raceComboBox.Text == "Gnomish" && genderComboBox.Text == "Male") { name = gnomishNames.getMaleFirstName(); } else if (raceComboBox.Text == "Gnomish" && genderComboBox.Text == "Female") { name = gnomishNames.getFemaleFirstName(); } else if (raceComboBox.Text == "Gnoll" && genderComboBox.Text == "Male") { name = gnollNames.getMaleFirstName(); } else if (raceComboBox.Text == "Gnoll" && genderComboBox.Text == "Female") { name = gnollNames.getFemaleFirstName(); } if (name != null) { firstNameLabel.Text = name; } }