Mercurial > repos > IBDev-IBBoard.WarFoundry.GUI.WinForms
comparison FrmReplaceUnitEquipment.cs @ 101:3e78af88ceb3
Re #179: Make sure that translations are used throughout UI
* Intermediary fix for locations in the UI for amount translations
author | IBBoard <dev@ibboard.co.uk> |
---|---|
date | Sat, 21 Nov 2009 21:27:39 +0000 |
parents | 74d3efaac800 |
children | b7899d084a14 |
comparison
equal
deleted
inserted
replaced
100:88b5a0da73f2 | 101:3e78af88ceb3 |
---|---|
9 using IBBoard; | 9 using IBBoard; |
10 using IBBoard.Commands; | 10 using IBBoard.Commands; |
11 using IBBoard.WarFoundry.API; | 11 using IBBoard.WarFoundry.API; |
12 using IBBoard.WarFoundry.API.Commands; | 12 using IBBoard.WarFoundry.API.Commands; |
13 using IBBoard.WarFoundry.API.Objects; | 13 using IBBoard.WarFoundry.API.Objects; |
14 using IBBoard.WarFoundry.API.Util; | |
14 | 15 |
15 namespace IBBoard.WarFoundry | 16 namespace IBBoard.WarFoundry |
16 { | 17 { |
17 /// <summary> | 18 /// <summary> |
18 /// Summary description for FrmNewUnitEquipment. | 19 /// Summary description for FrmNewUnitEquipment. |
179 setValue = false; | 180 setValue = false; |
180 } | 181 } |
181 } | 182 } |
182 } | 183 } |
183 | 184 |
184 double oldAmount = unit.GetEquipmentAmount(equipItem); | 185 double oldAmount = UnitEquipmentUtil.GetEquipmentAmount(unit, equipItem); |
185 | 186 |
186 if (setValue && oldAmount != amount) | 187 if (setValue && oldAmount != amount) |
187 { | 188 { |
188 if (equipmentAmount.IsRatioEquipmentAmount) | 189 if (equipmentAmount.IsRatioEquipmentAmount) |
189 { | 190 { |