diff FrmUnit.cs @ 34:3ceb0efd261f

Re #118: Allow equipment amounts of "ratio" equipment to be define as absolute or ratio amounts * Use new commands created in previous revision Re #122: Make usage of percentage or ratio common * Make sure all usage of percentages are correct Re #117: Add percentage and number boxes to equipment item dialogs * Fix some enable/disable inconsistencies for percentage amounts * Fix problems where fixed limits weren't honoured by widgets
author IBBoard <dev@ibboard.co.uk>
date Thu, 13 Aug 2009 21:16:21 +0000
parents 526fefefb16b
children 6ab7ddc038f9
line wrap: on
line diff
--- a/FrmUnit.cs	Sun Aug 09 12:05:24 2009 +0000
+++ b/FrmUnit.cs	Thu Aug 13 21:16:21 2009 +0000
@@ -19,8 +19,6 @@
 
 namespace IBBoard.WarFoundry.WinForms
 {
-	///TODO: Separate weapons out into optional and required, where required only has button for replacing
-
 	/// <summary>
 	/// Summary description for FrmUnit.
 	/// </summary>
@@ -504,7 +502,7 @@
 
 		private void removeWeapon()
 		{
-			commandStack.Execute(new SetUnitEquipmentAmountCommand(unit, ((UnitEquipmentChoice) optList.SelectedItem).Item, 0));
+			commandStack.Execute(new SetUnitEquipmentNumericAmountCommand(unit, ((UnitEquipmentChoice) optList.SelectedItem).Item, 0));
 		}
 
 		private void bttnRemoveWeapon_Click(object sender, System.EventArgs e)