Ejemplo n.º 1
0
 private void EditClassification_Click(object sender, EventArgs e)
 {
     if (this.SelectedPower != null)
     {
         int power = this.fTheme.Powers.IndexOf(this.SelectedPower);
         MonsterThemePowerForm monsterThemePowerForm = new MonsterThemePowerForm(this.SelectedPower);
         if (monsterThemePowerForm.ShowDialog() == System.Windows.Forms.DialogResult.OK)
         {
             this.fTheme.Powers[power] = monsterThemePowerForm.Power;
             this.update_powers();
         }
     }
 }
Ejemplo n.º 2
0
        private void EditClassification_Click(object sender, EventArgs e)
        {
            if (SelectedPower != null)
            {
                int index = fTheme.Powers.IndexOf(SelectedPower);

                MonsterThemePowerForm dlg = new MonsterThemePowerForm(SelectedPower);
                if (dlg.ShowDialog() == DialogResult.OK)
                {
                    fTheme.Powers[index] = dlg.Power;
                    update_powers();
                }
            }
        }