Can edit and delete spells.

Signed-off-by: Melissa Avery-Weir <melissa.avery@wellsfargo.com>
This commit is contained in:
Melissa Avery-Weir
2011-09-22 14:17:36 -04:00
parent 0c3c021a85
commit afdd8d0b17
14 changed files with 237 additions and 146 deletions

View File

@@ -24,6 +24,7 @@ namespace d20_SRD_Spell_Lists {
if (_spell != null) {
spell = _spell;
loadSpell();
} else {
spell = new Spell();
}
@@ -32,6 +33,13 @@ namespace d20_SRD_Spell_Lists {
txtName.LostFocus += new EventHandler(txtName_LostFocus);
}
private void loadSpell() {
txtName.Text = spell.Name;
txtLevel.Value = spell.Level;
txtComponents.Text = spell.Components;
txtDescription.Text = spell.ShortDescription;
}
void txtName_LostFocus(object sender, EventArgs e) {
if (txtName.Text != "") {
baseSpellComboBox.SelectedValue = "--";