Mercurial > repos > IBBoard.WarFoundry.GUI.WinForms
changeset 76:f2006db02ad9
Re #192: Improve "clean coding" practice
* Use new methods in WinForms UI
author | IBBoard <dev@ibboard.co.uk> |
---|---|
date | Sun, 04 Oct 2009 14:24:52 +0000 |
parents | bdd10c56a917 |
children | 712915de47fd |
files | FrmNewUnitEquipment.cs |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/FrmNewUnitEquipment.cs Tue Sep 29 19:51:32 2009 +0000 +++ b/FrmNewUnitEquipment.cs Sun Oct 04 14:24:52 2009 +0000 @@ -12,6 +12,7 @@ using IBBoard.WarFoundry.API; using IBBoard.WarFoundry.API.Commands; using IBBoard.WarFoundry.API.Objects; +using IBBoard.WarFoundry.API.Util; using IBBoard.WarFoundry.GUI.WinForms.Util; namespace IBBoard.WarFoundry.GUI.WinForms @@ -40,7 +41,7 @@ this.unit = unit; InitializeComponent(); this.Text = "New equipment for " + unit.Name; - object[] items = Arrays.Subtract(unit.GetAllowedAdditionalEquipment(), unit.GetEquipment()); + object[] items = Arrays.Subtract(UnitEquipmentUtil.GetAllowedEquipmentItems(unit), unit.GetEquipment()); listItems.Items.AddRange(items); equipmentAmount.SetUnit(unit); }