Mercurial > repos > IBDev-IBBoard.WarFoundry.GUI.WinForms
diff FrmEditUnitEquipment.cs @ 77:712915de47fd
Fixes #187: Error when adding equipment with minNum > unit size
* Handle percentages greater than 100
* Remove value change listeners before setting min/max and re-add in new wrapper method
* Hide value setting method and handle internally
author | IBBoard <dev@ibboard.co.uk> |
---|---|
date | Sun, 04 Oct 2009 19:58:23 +0000 |
parents | 1576f669b3eb |
children | c243b043aa62 |
line wrap: on
line diff
--- a/FrmEditUnitEquipment.cs Sun Oct 04 14:24:52 2009 +0000 +++ b/FrmEditUnitEquipment.cs Sun Oct 04 19:58:23 2009 +0000 @@ -39,7 +39,6 @@ this.Text = equipItem.Name + " for " + unit.Name; equipmentAmount.SetUnit(unit); equipmentAmount.SetUnitEquipmentItem(equipItem); - equipmentAmount.SetUnitEquipmentItemAmount(unit.GetEquipmentAmount(equipItem), unit.GetEquipmentAmountIsRatio(equipItem)); bttnOkay.Enabled = false; }