diff UI/EquipmentAmountControl.Designer.cs @ 114:727c1b0e49a6

Fixes #115: Typing number for equipment amount doesn't update Okay button * Remove KeyDown capture code (AcceptButton functionality captures the key press first) * Add ProcessDialogKey method that uses ValueChanged helper class to determine whether the control changes when we force an update New functionality is that the values can be typed and changed by pressing Enter, then a second Enter will accept the changes and close the dialog. If no changes were made then pressing Enter once accepts changes and closes the dialog.
author IBBoard <dev@ibboard.co.uk>
date Thu, 24 Dec 2009 12:04:32 +0000
parents c1a3993297b1
children e00332dc1618
line wrap: on
line diff
--- a/UI/EquipmentAmountControl.Designer.cs	Thu Dec 24 10:52:03 2009 +0000
+++ b/UI/EquipmentAmountControl.Designer.cs	Thu Dec 24 12:04:32 2009 +0000
@@ -93,7 +93,6 @@
 			this.percentage.Size = new System.Drawing.Size(105, 20);
 			this.percentage.TabIndex = 4;
 			this.percentage.ValueChanged += new System.EventHandler(this.percentage_ValueChanged);
-			this.percentage.KeyDown += new System.Windows.Forms.KeyEventHandler(this.percentage_KeyDown);
 			// 
 			// lblPercentSign
 			//