changeset 55:346b4ac34997

Re #163: Unit cost on unit dialog * Prevent overlap of labels no-open-ticket
author IBBoard <dev@ibboard.co.uk>
date Sat, 19 Sep 2009 10:48:46 +0000
parents d6ff354a5d84
children 11e81ba85684
files FrmUnit.cs
diffstat 1 files changed, 17 insertions(+), 17 deletions(-) [+]
line diff
     1.1 --- a/FrmUnit.cs	Sat Sep 19 10:27:01 2009 +0000
     1.2 +++ b/FrmUnit.cs	Sat Sep 19 10:48:46 2009 +0000
     1.3 @@ -202,8 +202,8 @@
     1.4  			this.bttnReplaceWeapon = new System.Windows.Forms.Button();
     1.5  			this.bttnEditReqdWeapon = new System.Windows.Forms.Button();
     1.6  			this.lblPoints = new System.Windows.Forms.Label();
     1.7 -			((System.ComponentModel.ISupportInitialize)(this.statsGrid)).BeginInit();
     1.8 -			((System.ComponentModel.ISupportInitialize)(this.unitSize)).BeginInit();
     1.9 +			((System.ComponentModel.ISupportInitialize) (this.statsGrid)).BeginInit();
    1.10 +			((System.ComponentModel.ISupportInitialize) (this.unitSize)).BeginInit();
    1.11  			this.SuspendLayout();
    1.12  			// 
    1.13  			// statsGrid
    1.14 @@ -211,7 +211,7 @@
    1.15  			this.statsGrid.AllowNavigation = false;
    1.16  			this.statsGrid.AllowSorting = false;
    1.17  			this.statsGrid.AlternatingBackColor = System.Drawing.SystemColors.Control;
    1.18 -			this.statsGrid.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
    1.19 +			this.statsGrid.Anchor = ((System.Windows.Forms.AnchorStyles) (((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
    1.20  						| System.Windows.Forms.AnchorStyles.Right)));
    1.21  			this.statsGrid.BackgroundColor = System.Drawing.SystemColors.Control;
    1.22  			this.statsGrid.CaptionVisible = false;
    1.23 @@ -241,7 +241,7 @@
    1.24  			// 
    1.25  			// unitSize
    1.26  			// 
    1.27 -			this.unitSize.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
    1.28 +			this.unitSize.Anchor = ((System.Windows.Forms.AnchorStyles) ((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
    1.29  			this.unitSize.Location = new System.Drawing.Point(528, 8);
    1.30  			this.unitSize.Name = "unitSize";
    1.31  			this.unitSize.Size = new System.Drawing.Size(80, 20);
    1.32 @@ -257,10 +257,10 @@
    1.33  			// 
    1.34  			// lblUnitSize
    1.35  			// 
    1.36 -			this.lblUnitSize.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
    1.37 -			this.lblUnitSize.Location = new System.Drawing.Point(424, 8);
    1.38 +			this.lblUnitSize.Anchor = ((System.Windows.Forms.AnchorStyles) ((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
    1.39 +			this.lblUnitSize.Location = new System.Drawing.Point(452, 8);
    1.40  			this.lblUnitSize.Name = "lblUnitSize";
    1.41 -			this.lblUnitSize.Size = new System.Drawing.Size(100, 23);
    1.42 +			this.lblUnitSize.Size = new System.Drawing.Size(72, 23);
    1.43  			this.lblUnitSize.TabIndex = 0;
    1.44  			this.lblUnitSize.Text = "unit size";
    1.45  			this.lblUnitSize.TextAlign = System.Drawing.ContentAlignment.TopRight;
    1.46 @@ -276,7 +276,7 @@
    1.47  			// 
    1.48  			// bttnAddWeapon
    1.49  			// 
    1.50 -			this.bttnAddWeapon.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
    1.51 +			this.bttnAddWeapon.Anchor = ((System.Windows.Forms.AnchorStyles) ((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
    1.52  			this.bttnAddWeapon.FlatStyle = System.Windows.Forms.FlatStyle.System;
    1.53  			this.bttnAddWeapon.Location = new System.Drawing.Point(520, 200);
    1.54  			this.bttnAddWeapon.Name = "bttnAddWeapon";
    1.55 @@ -287,7 +287,7 @@
    1.56  			// 
    1.57  			// bttnRemoveWeapon
    1.58  			// 
    1.59 -			this.bttnRemoveWeapon.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
    1.60 +			this.bttnRemoveWeapon.Anchor = ((System.Windows.Forms.AnchorStyles) ((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
    1.61  			this.bttnRemoveWeapon.Enabled = false;
    1.62  			this.bttnRemoveWeapon.FlatStyle = System.Windows.Forms.FlatStyle.System;
    1.63  			this.bttnRemoveWeapon.Location = new System.Drawing.Point(520, 248);
    1.64 @@ -299,7 +299,7 @@
    1.65  			// 
    1.66  			// reqdList
    1.67  			// 
    1.68 -			this.reqdList.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
    1.69 +			this.reqdList.Anchor = ((System.Windows.Forms.AnchorStyles) (((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
    1.70  						| System.Windows.Forms.AnchorStyles.Right)));
    1.71  			this.reqdList.Location = new System.Drawing.Point(104, 128);
    1.72  			this.reqdList.Name = "reqdList";
    1.73 @@ -310,7 +310,7 @@
    1.74  			// 
    1.75  			// bttnEditWeapon
    1.76  			// 
    1.77 -			this.bttnEditWeapon.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
    1.78 +			this.bttnEditWeapon.Anchor = ((System.Windows.Forms.AnchorStyles) ((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
    1.79  			this.bttnEditWeapon.Enabled = false;
    1.80  			this.bttnEditWeapon.FlatStyle = System.Windows.Forms.FlatStyle.System;
    1.81  			this.bttnEditWeapon.Location = new System.Drawing.Point(520, 224);
    1.82 @@ -322,7 +322,7 @@
    1.83  			// 
    1.84  			// optList
    1.85  			// 
    1.86 -			this.optList.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
    1.87 +			this.optList.Anchor = ((System.Windows.Forms.AnchorStyles) (((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
    1.88  						| System.Windows.Forms.AnchorStyles.Right)));
    1.89  			this.optList.Location = new System.Drawing.Point(104, 200);
    1.90  			this.optList.Name = "optList";
    1.91 @@ -342,7 +342,7 @@
    1.92  			// 
    1.93  			// bttnReplaceWeapon
    1.94  			// 
    1.95 -			this.bttnReplaceWeapon.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
    1.96 +			this.bttnReplaceWeapon.Anchor = ((System.Windows.Forms.AnchorStyles) ((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
    1.97  			this.bttnReplaceWeapon.Enabled = false;
    1.98  			this.bttnReplaceWeapon.FlatStyle = System.Windows.Forms.FlatStyle.System;
    1.99  			this.bttnReplaceWeapon.Location = new System.Drawing.Point(520, 128);
   1.100 @@ -354,7 +354,7 @@
   1.101  			// 
   1.102  			// bttnEditReqdWeapon
   1.103  			// 
   1.104 -			this.bttnEditReqdWeapon.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
   1.105 +			this.bttnEditReqdWeapon.Anchor = ((System.Windows.Forms.AnchorStyles) ((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
   1.106  			this.bttnEditReqdWeapon.Enabled = false;
   1.107  			this.bttnEditReqdWeapon.FlatStyle = System.Windows.Forms.FlatStyle.System;
   1.108  			this.bttnEditReqdWeapon.Location = new System.Drawing.Point(520, 152);
   1.109 @@ -368,7 +368,7 @@
   1.110  			// 
   1.111  			this.lblPoints.Location = new System.Drawing.Point(358, 8);
   1.112  			this.lblPoints.Name = "lblPoints";
   1.113 -			this.lblPoints.Size = new System.Drawing.Size(100, 21);
   1.114 +			this.lblPoints.Size = new System.Drawing.Size(88, 21);
   1.115  			this.lblPoints.TabIndex = 12;
   1.116  			// 
   1.117  			// FrmUnit
   1.118 @@ -393,8 +393,8 @@
   1.119  			this.ShowInTaskbar = false;
   1.120  			this.Text = "FrmUnit";
   1.121  			this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.FrmUnit_FormClosing);
   1.122 -			((System.ComponentModel.ISupportInitialize)(this.statsGrid)).EndInit();
   1.123 -			((System.ComponentModel.ISupportInitialize)(this.unitSize)).EndInit();
   1.124 +			((System.ComponentModel.ISupportInitialize) (this.statsGrid)).EndInit();
   1.125 +			((System.ComponentModel.ISupportInitialize) (this.unitSize)).EndInit();
   1.126  			this.ResumeLayout(false);
   1.127  			this.PerformLayout();
   1.128