private void addSpellBt_Click(object sender, EventArgs e) { EditSpell es = new EditSpell(_activeCharacter); es.ShowDialog(); updateView(); }
private void spellEditBt_Click(object sender, EventArgs e) { int spellIndex = spellsDgv.SelectedRows[0].Index; Spell selectedSpell = _activeCharacter.Spells[spellIndex]; EditSpell es = new EditSpell(_activeCharacter, selectedSpell); es.ShowDialog(); updateView(); }