Example #1
0
 private void reloadPrioritiesToolStripMenuItem_Click(object sender, EventArgs e)
 {
     try {
         SpellManager spellManager = new SpellManager();
         int spellsUpdated = spellManager.updateSpellPriority();
         MessageBox.Show(this, "Updated " + spellsUpdated + " spells.");
     } catch (Exception ex) {
         MessageBox.Show("An error occured updating the spell data. Try updating again.\nError: " + ex);
     }
 }
Example #2
0
 private void loadFromRosterToolStripMenuItem_Click(object sender, EventArgs e)
 {
     try {
         SpellManager spellManager = new SpellManager();
         int spellsAdded = spellManager.loadSpellLogFromRoster();
         MessageBox.Show(this, "Added " + spellsAdded + " spells.");
     } catch (Exception ex) {
         MessageBox.Show("An error occured loading the spell data. Try loading again.\nError: " + ex);
     }
 }