comparison 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
comparison
equal deleted inserted replaced
113:c1a3993297b1 114:727c1b0e49a6
91 this.percentage.Location = new System.Drawing.Point(26, 29); 91 this.percentage.Location = new System.Drawing.Point(26, 29);
92 this.percentage.Name = "percentage"; 92 this.percentage.Name = "percentage";
93 this.percentage.Size = new System.Drawing.Size(105, 20); 93 this.percentage.Size = new System.Drawing.Size(105, 20);
94 this.percentage.TabIndex = 4; 94 this.percentage.TabIndex = 4;
95 this.percentage.ValueChanged += new System.EventHandler(this.percentage_ValueChanged); 95 this.percentage.ValueChanged += new System.EventHandler(this.percentage_ValueChanged);
96 this.percentage.KeyDown += new System.Windows.Forms.KeyEventHandler(this.percentage_KeyDown);
97 // 96 //
98 // lblPercentSign 97 // lblPercentSign
99 // 98 //
100 this.lblPercentSign.AutoSize = true; 99 this.lblPercentSign.AutoSize = true;
101 this.lblPercentSign.Location = new System.Drawing.Point(131, 31); 100 this.lblPercentSign.Location = new System.Drawing.Point(131, 31);