Mercurial > repos > IBBoard.WarFoundry.GUI.WinForms
comparison FrmNewArmy.cs @ 138:18d607b0249b
Re #203: Translate to multiple languages
* Add French translation from Dreadaxe
Re #88: Complete initial WinForms UI
* Resize new army form and text widgets on unit form to allow space for longer French translations
author | IBBoard <dev@ibboard.co.uk> |
---|---|
date | Tue, 06 Apr 2010 13:13:24 +0000 |
parents | 39b93ca5fb9c |
children | 0e17097db8e5 |
comparison
equal
deleted
inserted
replaced
137:ce63500e0ec1 | 138:18d607b0249b |
---|---|
105 ((System.ComponentModel.ISupportInitialize) (this.armySize)).BeginInit(); | 105 ((System.ComponentModel.ISupportInitialize) (this.armySize)).BeginInit(); |
106 this.SuspendLayout(); | 106 this.SuspendLayout(); |
107 // | 107 // |
108 // lstRaces | 108 // lstRaces |
109 // | 109 // |
110 this.lstRaces.Anchor = ((System.Windows.Forms.AnchorStyles) (((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) | |
111 | System.Windows.Forms.AnchorStyles.Right))); | |
110 this.lstRaces.DisplayMember = "Name"; | 112 this.lstRaces.DisplayMember = "Name"; |
111 this.lstRaces.Location = new System.Drawing.Point(110, 33); | 113 this.lstRaces.Location = new System.Drawing.Point(141, 33); |
112 this.lstRaces.Name = "lstRaces"; | 114 this.lstRaces.Name = "lstRaces"; |
113 this.lstRaces.Size = new System.Drawing.Size(248, 121); | 115 this.lstRaces.Size = new System.Drawing.Size(265, 121); |
114 this.lstRaces.TabIndex = 7; | 116 this.lstRaces.TabIndex = 7; |
115 this.lstRaces.SelectedIndexChanged += new System.EventHandler(this.lstRaces_SelectedIndexChanged); | 117 this.lstRaces.SelectedIndexChanged += new System.EventHandler(this.lstRaces_SelectedIndexChanged); |
116 // | 118 // |
117 // bttnCancel | 119 // bttnCancel |
118 // | 120 // |
127 // | 129 // |
128 // lblRaceList | 130 // lblRaceList |
129 // | 131 // |
130 this.lblRaceList.Location = new System.Drawing.Point(12, 33); | 132 this.lblRaceList.Location = new System.Drawing.Point(12, 33); |
131 this.lblRaceList.Name = "lblRaceList"; | 133 this.lblRaceList.Name = "lblRaceList"; |
132 this.lblRaceList.Size = new System.Drawing.Size(92, 80); | 134 this.lblRaceList.Size = new System.Drawing.Size(123, 80); |
133 this.lblRaceList.TabIndex = 5; | 135 this.lblRaceList.TabIndex = 5; |
134 this.lblRaceList.Text = "race list"; | 136 this.lblRaceList.Text = "race list"; |
135 this.lblRaceList.TextAlign = System.Drawing.ContentAlignment.TopRight; | 137 this.lblRaceList.TextAlign = System.Drawing.ContentAlignment.TopRight; |
136 // | 138 // |
137 // bttnSelectRace | 139 // bttnSelectRace |
138 // | 140 // |
141 this.bttnSelectRace.Anchor = ((System.Windows.Forms.AnchorStyles) (((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) | |
142 | System.Windows.Forms.AnchorStyles.Right))); | |
139 this.bttnSelectRace.Enabled = false; | 143 this.bttnSelectRace.Enabled = false; |
140 this.bttnSelectRace.FlatStyle = System.Windows.Forms.FlatStyle.System; | 144 this.bttnSelectRace.FlatStyle = System.Windows.Forms.FlatStyle.System; |
141 this.bttnSelectRace.Location = new System.Drawing.Point(254, 231); | 145 this.bttnSelectRace.Location = new System.Drawing.Point(254, 231); |
142 this.bttnSelectRace.Name = "bttnSelectRace"; | 146 this.bttnSelectRace.Name = "bttnSelectRace"; |
143 this.bttnSelectRace.Size = new System.Drawing.Size(104, 24); | 147 this.bttnSelectRace.Size = new System.Drawing.Size(152, 24); |
144 this.bttnSelectRace.TabIndex = 4; | 148 this.bttnSelectRace.TabIndex = 4; |
145 this.bttnSelectRace.Text = "create army"; | 149 this.bttnSelectRace.Text = "create army"; |
146 this.bttnSelectRace.Click += new System.EventHandler(this.bttnSelectRace_Click); | 150 this.bttnSelectRace.Click += new System.EventHandler(this.bttnSelectRace_Click); |
147 // | 151 // |
148 // lblArmyName | 152 // lblArmyName |
149 // | 153 // |
150 this.lblArmyName.Location = new System.Drawing.Point(12, 163); | 154 this.lblArmyName.Location = new System.Drawing.Point(12, 163); |
151 this.lblArmyName.Name = "lblArmyName"; | 155 this.lblArmyName.Name = "lblArmyName"; |
152 this.lblArmyName.Size = new System.Drawing.Size(92, 17); | 156 this.lblArmyName.Size = new System.Drawing.Size(123, 17); |
153 this.lblArmyName.TabIndex = 8; | 157 this.lblArmyName.TabIndex = 8; |
154 this.lblArmyName.Text = "army name"; | 158 this.lblArmyName.Text = "army name"; |
155 this.lblArmyName.TextAlign = System.Drawing.ContentAlignment.TopRight; | 159 this.lblArmyName.TextAlign = System.Drawing.ContentAlignment.TopRight; |
156 // | 160 // |
157 // txtArmyName | 161 // txtArmyName |
158 // | 162 // |
159 this.txtArmyName.Location = new System.Drawing.Point(110, 160); | 163 this.txtArmyName.Anchor = ((System.Windows.Forms.AnchorStyles) (((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) |
164 | System.Windows.Forms.AnchorStyles.Right))); | |
165 this.txtArmyName.Location = new System.Drawing.Point(141, 160); | |
160 this.txtArmyName.Name = "txtArmyName"; | 166 this.txtArmyName.Name = "txtArmyName"; |
161 this.txtArmyName.Size = new System.Drawing.Size(248, 20); | 167 this.txtArmyName.Size = new System.Drawing.Size(265, 20); |
162 this.txtArmyName.TabIndex = 9; | 168 this.txtArmyName.TabIndex = 9; |
163 this.txtArmyName.TextChanged += new System.EventHandler(this.txtArmyName_TextChanged); | 169 this.txtArmyName.TextChanged += new System.EventHandler(this.txtArmyName_TextChanged); |
164 // | 170 // |
165 // lblArmySize | 171 // lblArmySize |
166 // | 172 // |
167 this.lblArmySize.Location = new System.Drawing.Point(12, 188); | 173 this.lblArmySize.Location = new System.Drawing.Point(12, 188); |
168 this.lblArmySize.Name = "lblArmySize"; | 174 this.lblArmySize.Name = "lblArmySize"; |
169 this.lblArmySize.Size = new System.Drawing.Size(92, 18); | 175 this.lblArmySize.Size = new System.Drawing.Size(123, 18); |
170 this.lblArmySize.TabIndex = 10; | 176 this.lblArmySize.TabIndex = 10; |
171 this.lblArmySize.Text = "army size"; | 177 this.lblArmySize.Text = "army size"; |
172 this.lblArmySize.TextAlign = System.Drawing.ContentAlignment.TopRight; | 178 this.lblArmySize.TextAlign = System.Drawing.ContentAlignment.TopRight; |
173 // | 179 // |
174 // armySize | 180 // armySize |
176 this.armySize.Increment = new decimal(new int[] { | 182 this.armySize.Increment = new decimal(new int[] { |
177 50, | 183 50, |
178 0, | 184 0, |
179 0, | 185 0, |
180 0}); | 186 0}); |
181 this.armySize.Location = new System.Drawing.Point(110, 186); | 187 this.armySize.Location = new System.Drawing.Point(141, 186); |
182 this.armySize.Maximum = new decimal(new int[] { | 188 this.armySize.Maximum = new decimal(new int[] { |
183 1000000, | 189 1000000, |
184 0, | 190 0, |
185 0, | 191 0, |
186 0}); | 192 0}); |
196 // | 202 // |
197 // lblGameSystem | 203 // lblGameSystem |
198 // | 204 // |
199 this.lblGameSystem.Location = new System.Drawing.Point(12, 9); | 205 this.lblGameSystem.Location = new System.Drawing.Point(12, 9); |
200 this.lblGameSystem.Name = "lblGameSystem"; | 206 this.lblGameSystem.Name = "lblGameSystem"; |
201 this.lblGameSystem.Size = new System.Drawing.Size(92, 18); | 207 this.lblGameSystem.Size = new System.Drawing.Size(123, 18); |
202 this.lblGameSystem.TabIndex = 12; | 208 this.lblGameSystem.TabIndex = 12; |
203 this.lblGameSystem.Text = "game system"; | 209 this.lblGameSystem.Text = "game system"; |
204 this.lblGameSystem.TextAlign = System.Drawing.ContentAlignment.TopRight; | 210 this.lblGameSystem.TextAlign = System.Drawing.ContentAlignment.TopRight; |
205 // | 211 // |
206 // gameSystems | 212 // gameSystems |
207 // | 213 // |
214 this.gameSystems.Anchor = ((System.Windows.Forms.AnchorStyles) (((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) | |
215 | System.Windows.Forms.AnchorStyles.Right))); | |
208 this.gameSystems.DisplayMember = "Name"; | 216 this.gameSystems.DisplayMember = "Name"; |
209 this.gameSystems.FormattingEnabled = true; | 217 this.gameSystems.FormattingEnabled = true; |
210 this.gameSystems.Location = new System.Drawing.Point(110, 6); | 218 this.gameSystems.Location = new System.Drawing.Point(141, 6); |
211 this.gameSystems.Name = "gameSystems"; | 219 this.gameSystems.Name = "gameSystems"; |
212 this.gameSystems.Size = new System.Drawing.Size(248, 21); | 220 this.gameSystems.Size = new System.Drawing.Size(265, 21); |
213 this.gameSystems.TabIndex = 13; | 221 this.gameSystems.TabIndex = 13; |
214 this.gameSystems.SelectedValueChanged += new System.EventHandler(this.gameSystems_SelectedValueChanged); | 222 this.gameSystems.SelectedValueChanged += new System.EventHandler(this.gameSystems_SelectedValueChanged); |
215 // | 223 // |
216 // FrmNewArmy | 224 // FrmNewArmy |
217 // | 225 // |
218 this.AcceptButton = this.bttnSelectRace; | |
219 this.AutoScaleBaseSize = new System.Drawing.Size(5, 13); | 226 this.AutoScaleBaseSize = new System.Drawing.Size(5, 13); |
220 this.CancelButton = this.bttnCancel; | 227 this.ClientSize = new System.Drawing.Size(418, 267); |
221 this.ClientSize = new System.Drawing.Size(370, 267); | |
222 this.Controls.Add(this.gameSystems); | 228 this.Controls.Add(this.gameSystems); |
223 this.Controls.Add(this.lblGameSystem); | 229 this.Controls.Add(this.lblGameSystem); |
224 this.Controls.Add(this.armySize); | 230 this.Controls.Add(this.armySize); |
225 this.Controls.Add(this.lblArmySize); | 231 this.Controls.Add(this.lblArmySize); |
226 this.Controls.Add(this.txtArmyName); | 232 this.Controls.Add(this.txtArmyName); |