private void btnSpellDownload_Click(object sender, EventArgs e) { Program.mainForm.spellList = SpellFileHandler.GetSpellListFromWeb(); List <Form> formList = new List <Form>(); foreach (Form f in Application.OpenForms) { formList.Add(f); } foreach (Form f in formList) { if (f is SpellTool) { SpellTool x = (SpellTool)f; x.RefreshSpells(); } } Dispose(); }
private void btnSpells_Click(object sender, EventArgs e) { SpellTool spellTool = new SpellTool(); spellTool.Show(); }