diff UI/EquipmentAmountControl.cs @ 93:37126221efa6

Re #208 * Make sure that the appropriate radio button is set when editing existing equipment instead of defaulting to the equipment type's radio button selection no-open-ticket
author IBBoard <dev@ibboard.co.uk>
date Mon, 09 Nov 2009 12:31:42 +0000
parents e1e3957db129
children 057498981bde
line wrap: on
line diff
--- a/UI/EquipmentAmountControl.cs	Wed Nov 04 19:26:08 2009 +0000
+++ b/UI/EquipmentAmountControl.cs	Mon Nov 09 12:31:42 2009 +0000
@@ -208,11 +208,21 @@
 				if (isRatio)
 				{
 					SetEquipmentAmountsFromPercentage(equipAmountNum);
+
+					if (equipAmountNum == 100)
+					{
+						rbEquipAll.Checked = true;
+					}
+					else
+					{
+						rbPercentage.Checked = true;
+					}
 				}
 				else
 				{
 					int equipAmount = (int) equipAmountNum;
 					SetEquipmentAmountsFromNumber(equipAmount);
+					rbNumeric.Checked = true;
 				}
 			}
 		}