Mercurial > repos > IBDev-IBBoard.WarFoundry.GUI.WinForms
view FrmEditArmy.Designer.cs @ 242:ea5cb50ebe5e
Fixes #384: Validation warnings don't get cleared when creating new armies
* Check whether army is valid when it changes (also means we validate on load as well as clearing on close)
author | IBBoard <dev@ibboard.co.uk> |
---|---|
date | Sat, 21 Jan 2012 16:51:07 +0000 |
parents | 5233147ca7e4 |
children |
line wrap: on
line source
namespace IBBoard.WarFoundry.GUI.WinForms { partial class FrmEditArmy { /// <summary> /// Required designer variable. /// </summary> private System.ComponentModel.IContainer components = null; /// <summary> /// Clean up any resources being used. /// </summary> /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param> protected override void Dispose(bool disposing) { if (disposing && (components != null)) { components.Dispose(); } base.Dispose(disposing); } #region Windows Form Designer generated code /// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { this.bttnOkay = new IBBoard.Windows.Forms.IBBButton(); this.armySize = new System.Windows.Forms.NumericUpDown(); this.lblArmySize = new IBBoard.Windows.Forms.IBBLabel(); this.txtArmyName = new System.Windows.Forms.TextBox(); this.lblArmyName = new IBBoard.Windows.Forms.IBBLabel(); this.bttnCancel = new IBBoard.Windows.Forms.IBBButton(); ((System.ComponentModel.ISupportInitialize)(this.armySize)).BeginInit(); this.SuspendLayout(); // // bttnOkay // this.bttnOkay.Location = new System.Drawing.Point(330, 76); this.bttnOkay.Name = "bttnOkay"; this.bttnOkay.Size = new System.Drawing.Size(75, 23); this.bttnOkay.TabIndex = 13; this.bttnOkay.Text = "okay"; this.bttnOkay.UseVisualStyleBackColor = true; this.bttnOkay.Click += new System.EventHandler(this.bttnOkay_Click); // // armySize // this.armySize.Increment = new decimal(new int[] { 50, 0, 0, 0}); this.armySize.Location = new System.Drawing.Point(140, 38); this.armySize.Maximum = new decimal(new int[] { 1000000, 0, 0, 0}); this.armySize.Name = "armySize"; this.armySize.Size = new System.Drawing.Size(99, 20); this.armySize.TabIndex = 17; this.armySize.ThousandsSeparator = true; this.armySize.Value = new decimal(new int[] { 2000, 0, 0, 0}); this.armySize.ValueChanged += new System.EventHandler(this.armySize_ValueChanged); this.armySize.KeyUp += new System.Windows.Forms.KeyEventHandler(this.armySize_KeyUp); // // lblArmySize // this.lblArmySize.Location = new System.Drawing.Point(12, 40); this.lblArmySize.Name = "lblArmySize"; this.lblArmySize.Size = new System.Drawing.Size(122, 18); this.lblArmySize.TabIndex = 16; this.lblArmySize.Text = "army size"; this.lblArmySize.TextAlign = System.Drawing.ContentAlignment.TopRight; // // txtArmyName // this.txtArmyName.Location = new System.Drawing.Point(140, 12); this.txtArmyName.Name = "txtArmyName"; this.txtArmyName.Size = new System.Drawing.Size(265, 20); this.txtArmyName.TabIndex = 15; this.txtArmyName.TextChanged += new System.EventHandler(this.txtArmyName_TextChanged); // // lblArmyName // this.lblArmyName.Location = new System.Drawing.Point(12, 15); this.lblArmyName.Name = "lblArmyName"; this.lblArmyName.Size = new System.Drawing.Size(122, 17); this.lblArmyName.TabIndex = 14; this.lblArmyName.Text = "army name"; this.lblArmyName.TextAlign = System.Drawing.ContentAlignment.TopRight; // // bttnCancel // this.bttnCancel.DialogResult = System.Windows.Forms.DialogResult.Cancel; this.bttnCancel.Location = new System.Drawing.Point(13, 76); this.bttnCancel.Name = "bttnCancel"; this.bttnCancel.Size = new System.Drawing.Size(75, 23); this.bttnCancel.TabIndex = 18; this.bttnCancel.Text = "cancel"; this.bttnCancel.UseVisualStyleBackColor = true; this.bttnCancel.Click += new System.EventHandler(this.bttnCancel_Click); // // FrmEditArmy // this.AcceptButton = this.bttnOkay; this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.CancelButton = this.bttnCancel; this.ClientSize = new System.Drawing.Size(417, 111); this.Controls.Add(this.bttnCancel); this.Controls.Add(this.armySize); this.Controls.Add(this.lblArmySize); this.Controls.Add(this.txtArmyName); this.Controls.Add(this.lblArmyName); this.Controls.Add(this.bttnOkay); this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog; this.Name = "FrmEditArmy"; this.ShowIcon = false; this.ShowInTaskbar = false; this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent; this.Text = "edit army"; ((System.ComponentModel.ISupportInitialize)(this.armySize)).EndInit(); this.ResumeLayout(false); this.PerformLayout(); } #endregion private Windows.Forms.IBBButton bttnOkay; private System.Windows.Forms.NumericUpDown armySize; private Windows.Forms.IBBLabel lblArmySize; private System.Windows.Forms.TextBox txtArmyName; private Windows.Forms.IBBLabel lblArmyName; private Windows.Forms.IBBButton bttnCancel; } }