private void chosenSpells_SelectedIndexChanged(object sender, EventArgs e) { if (chosenSpells.SelectedItems.Count > 0) { spellDescriptionLabel.Text = SpellFormatter.formatSpellDescription((Spell)chosenSpells.SelectedItem); } }
private void availableCantrips_SelectedIndexChanged(object sender, EventArgs e) { if (availableCantrips.SelectedItems.Count > 0) { cantripDescriptionLabel.Text = SpellFormatter.formatSpellDescription((Spell)availableCantrips.SelectedItem); } }