changeset 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 04ca17389f13
children e4a8653b9536
files UI/EquipmentAmountControl.cs
diffstat 1 files changed, 10 insertions(+), 0 deletions(-) [+]
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;
 				}
 			}
 		}