Example #1
0
        private void btn_AttackingAdd_Click(object sender, EventArgs e)
        {
            InputDlg     input = new InputDlg();
            DialogResult dr    = input.ShowDialog(this);

            if (dr == DialogResult.OK)
            {
                Spell spell = new Spell();
                spell.setName(input.txb_SpellName.Text);
                spell.addCommand(input.txb_Command.Text);
                m_Profile.m_Attacks[input.txb_SpellName.Text] = spell;
                lst_Attacking.Items.Add(input.txb_SpellName.Text);
            }
        }
Example #2
0
        private void btn_Mounted_Click(object sender, EventArgs e)
        {
            InputDlg input = new InputDlg();

            if (m_Profile.m_Auras["Mounted"] != null)
            {
                input.txb_SpellName.Text = ((Spell)m_Profile.m_Auras["Mounted"]).getName();
                input.txb_Command.Text   = ((Spell)m_Profile.m_Auras["Mounted"]).m_Command[0].ToString();
            }
            DialogResult dr = input.ShowDialog(this);

            if (dr == DialogResult.OK)
            {
                Spell spell = new Spell();
                spell.setName(input.txb_SpellName.Text);
                spell.addCommand(input.txb_Command.Text);
                m_Profile.m_Auras["Mounted"] = spell;
            }
        }