private void buttonAddCondition_Click(object sender, EventArgs e)
        {
            FormWithLogicSetup temp = EnchantmentUtilities.getCorrectFormType(comboBoxConditions.Text);

            temp.Data().Parent = _data;
            temp.Setup(temp.Data());
            _data.conditions.Add((Calculable)temp.Data());
            Setup(_data);
            temp.Show();
        }
        private void buttonAddElseResult_Click(object sender, EventArgs e)
        {
            FormWithLogicSetup temp;

            if (Enum.GetNames(typeof(EnchantmentUtilities.TriggerableTypes)).Contains(comboBoxResults.Text))
            {
                temp = EnchantmentUtilities.getCorrectFormType(comboBoxResults.Text);
            }
            else
            {
                temp = new IfElseLogicForm(Utilities.GetEnchantmentByName(comboBoxResults.Text));
            }
            temp.Data().Parent = _data;
            temp.Setup(temp.Data());
            _data.elseResults.Add((Triggerable)temp.Data());
            Setup(_data);
            temp.Show();
        }
 // change defence val
 private void buttonChangeRight_Click(object sender, EventArgs e)
 {
     if (_data.defenceValue == null)
     {
         FormWithLogicSetup temp = EnchantmentUtilities.getCorrectFormType(comboBoxDefenderCalc.Text);
         temp.Data().Parent      = _data;
         temp.Setup(temp.Data());
         _data.defenceValue = ((Calculable)temp.Data());
         Setup(_data);
         temp.Show();
     }
     else if (((Logic)_data.defenceValue).LogicType == comboBoxDefenderCalc.Text)
     {
         EnchantmentUtilities.EditLogicWithRightForm((Logic)_data.defenceValue);
     }
     else if (checkBoxChangeable.Checked)
     {
         ((Logic)_data.defenceValue).Delete();
         _data.defenceValue = null;
         buttonChangeRight_Click(sender, e);
     }
 }
 private void comboBoxPotency_SelectedIndexChanged(object sender, EventArgs e)
 {
     if (_data.potency == null)
     {
         FormWithLogicSetup temp = EnchantmentUtilities.getCorrectFormType(comboBoxPotency.Text);
         temp.Data().Parent      = _data;
         temp.Setup(temp.Data());
         _data.potency = ((Calculable)temp.Data());
         temp.Show();
         Setup(_data);
     }
     else if (((Logic)_data.potency).LogicType == comboBoxPotency.Text)
     {
         EnchantmentUtilities.EditLogicWithRightForm((Logic)_data.potency);
     }
     else if (checkBoxChangeable.Checked)
     {
         ((Logic)_data.potency).Delete();
         _data.potency = null;
         comboBoxPotency_SelectedIndexChanged(sender, e);
     }
 }