Exemple #1
0
        private void spellViewerToolStripMenuItem_Click(object sender, EventArgs e)
        {
            var dialog = new SkillIconForm(0, "spell");

            dialog.ShowDialog();
            int icon = dialog.SelectedIcon;
        }
Exemple #2
0
        private void imgIcon_Click(object sender, EventArgs e)
        {
            SkillIconForm dialog;

            switch (cmbBook.SelectedIndex)
            {
            case 0:
            case 2:
            case 4:
                dialog = new SkillIconForm(0, "skill");
                break;

            default:
                dialog = new SkillIconForm(0, "spell");
                break;
            }
            dialog.ShowDialog();
            if (dialog.SelectedIcon != _skill.Icon)
            {
                _modified   = true;
                _skill.Icon = dialog.SelectedIcon;
                UpdateIcon();
            }
        }