示例#1
0
        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();
        }
示例#2
0
        private void btnSpells_Click(object sender, EventArgs e)
        {
            SpellTool spellTool = new SpellTool();

            spellTool.Show();
        }