private void M_Edit_Click(object sender, EventArgs e) { if (m_state == null) { return; } WizSpellEditDialogcs dlg = new WizSpellEditDialogcs(); if (dlg.EditShowDialog(m_state)) { m_state.CharSpell = dlg.Spell; } }
// ****************************************************************************** private void ShowSpellEdit() { if (m_Limit.IsSpell == false) { return; } if (m_state == null) { return; } WizSpellEditDialogcs dlg = new WizSpellEditDialogcs(); if (dlg.EditShowDialog(m_state)) { m_state.CharSpell = dlg.Spell; } }