private void btnCreate_Click(object sender, EventArgs e) { if (_comboImageBox.SelectedIndex > 0) { MessageBox.Show("This ruleset is not yet implemented.", "Roleplay Resource"); return; } CreateCharacter create = new CreateCharacter((Enums.Ruleset)Enum.Parse(typeof(Enums.Ruleset), _comboImageBox.SelectedItem.ToString())); create.Show(); }
private void lstCharacters_SelectedIndexChanged(object sender, EventArgs e) { if (_loadCharacterSelectionMade) { CreateCharacter create = new CreateCharacter((Enums.Ruleset)Enum.Parse(typeof(Enums.Ruleset), _comboImageBox.SelectedItem.ToString()), lstCharacters.SelectedItem.ToString()); create.Show(); } else { _loadCharacterSelectionMade = true; } }