Mercurial > repos > IBDev-IBBoard.WarFoundry.GUI.WinForms
comparison FrmUnit.cs @ 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 | e6d0d9eababf |
children | c283545d2d0b |
comparison
equal
deleted
inserted
replaced
54:d6ff354a5d84 | 55:346b4ac34997 |
---|---|
200 this.optList = new System.Windows.Forms.ListBox(); | 200 this.optList = new System.Windows.Forms.ListBox(); |
201 this.lblOptionalEquip = new System.Windows.Forms.Label(); | 201 this.lblOptionalEquip = new System.Windows.Forms.Label(); |
202 this.bttnReplaceWeapon = new System.Windows.Forms.Button(); | 202 this.bttnReplaceWeapon = new System.Windows.Forms.Button(); |
203 this.bttnEditReqdWeapon = new System.Windows.Forms.Button(); | 203 this.bttnEditReqdWeapon = new System.Windows.Forms.Button(); |
204 this.lblPoints = new System.Windows.Forms.Label(); | 204 this.lblPoints = new System.Windows.Forms.Label(); |
205 ((System.ComponentModel.ISupportInitialize)(this.statsGrid)).BeginInit(); | 205 ((System.ComponentModel.ISupportInitialize) (this.statsGrid)).BeginInit(); |
206 ((System.ComponentModel.ISupportInitialize)(this.unitSize)).BeginInit(); | 206 ((System.ComponentModel.ISupportInitialize) (this.unitSize)).BeginInit(); |
207 this.SuspendLayout(); | 207 this.SuspendLayout(); |
208 // | 208 // |
209 // statsGrid | 209 // statsGrid |
210 // | 210 // |
211 this.statsGrid.AllowNavigation = false; | 211 this.statsGrid.AllowNavigation = false; |
212 this.statsGrid.AllowSorting = false; | 212 this.statsGrid.AllowSorting = false; |
213 this.statsGrid.AlternatingBackColor = System.Drawing.SystemColors.Control; | 213 this.statsGrid.AlternatingBackColor = System.Drawing.SystemColors.Control; |
214 this.statsGrid.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) | 214 this.statsGrid.Anchor = ((System.Windows.Forms.AnchorStyles) (((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) |
215 | System.Windows.Forms.AnchorStyles.Right))); | 215 | System.Windows.Forms.AnchorStyles.Right))); |
216 this.statsGrid.BackgroundColor = System.Drawing.SystemColors.Control; | 216 this.statsGrid.BackgroundColor = System.Drawing.SystemColors.Control; |
217 this.statsGrid.CaptionVisible = false; | 217 this.statsGrid.CaptionVisible = false; |
218 this.statsGrid.CausesValidation = false; | 218 this.statsGrid.CausesValidation = false; |
219 this.statsGrid.DataMember = ""; | 219 this.statsGrid.DataMember = ""; |
239 this.tbUnitName.Leave += new System.EventHandler(this.tbUnitName_Leave); | 239 this.tbUnitName.Leave += new System.EventHandler(this.tbUnitName_Leave); |
240 this.tbUnitName.KeyDown += new System.Windows.Forms.KeyEventHandler(this.tbUnitName_KeyDown); | 240 this.tbUnitName.KeyDown += new System.Windows.Forms.KeyEventHandler(this.tbUnitName_KeyDown); |
241 // | 241 // |
242 // unitSize | 242 // unitSize |
243 // | 243 // |
244 this.unitSize.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); | 244 this.unitSize.Anchor = ((System.Windows.Forms.AnchorStyles) ((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); |
245 this.unitSize.Location = new System.Drawing.Point(528, 8); | 245 this.unitSize.Location = new System.Drawing.Point(528, 8); |
246 this.unitSize.Name = "unitSize"; | 246 this.unitSize.Name = "unitSize"; |
247 this.unitSize.Size = new System.Drawing.Size(80, 20); | 247 this.unitSize.Size = new System.Drawing.Size(80, 20); |
248 this.unitSize.TabIndex = 1; | 248 this.unitSize.TabIndex = 1; |
249 this.unitSize.TextAlign = System.Windows.Forms.HorizontalAlignment.Right; | 249 this.unitSize.TextAlign = System.Windows.Forms.HorizontalAlignment.Right; |
255 this.unitSize.Leave += new System.EventHandler(this.unitSize_Leave); | 255 this.unitSize.Leave += new System.EventHandler(this.unitSize_Leave); |
256 this.unitSize.KeyDown += new System.Windows.Forms.KeyEventHandler(this.unitSize_KeyDown); | 256 this.unitSize.KeyDown += new System.Windows.Forms.KeyEventHandler(this.unitSize_KeyDown); |
257 // | 257 // |
258 // lblUnitSize | 258 // lblUnitSize |
259 // | 259 // |
260 this.lblUnitSize.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); | 260 this.lblUnitSize.Anchor = ((System.Windows.Forms.AnchorStyles) ((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); |
261 this.lblUnitSize.Location = new System.Drawing.Point(424, 8); | 261 this.lblUnitSize.Location = new System.Drawing.Point(452, 8); |
262 this.lblUnitSize.Name = "lblUnitSize"; | 262 this.lblUnitSize.Name = "lblUnitSize"; |
263 this.lblUnitSize.Size = new System.Drawing.Size(100, 23); | 263 this.lblUnitSize.Size = new System.Drawing.Size(72, 23); |
264 this.lblUnitSize.TabIndex = 0; | 264 this.lblUnitSize.TabIndex = 0; |
265 this.lblUnitSize.Text = "unit size"; | 265 this.lblUnitSize.Text = "unit size"; |
266 this.lblUnitSize.TextAlign = System.Drawing.ContentAlignment.TopRight; | 266 this.lblUnitSize.TextAlign = System.Drawing.ContentAlignment.TopRight; |
267 // | 267 // |
268 // lblRequiredEquip | 268 // lblRequiredEquip |
274 this.lblRequiredEquip.Text = "reqd equipment"; | 274 this.lblRequiredEquip.Text = "reqd equipment"; |
275 this.lblRequiredEquip.TextAlign = System.Drawing.ContentAlignment.TopRight; | 275 this.lblRequiredEquip.TextAlign = System.Drawing.ContentAlignment.TopRight; |
276 // | 276 // |
277 // bttnAddWeapon | 277 // bttnAddWeapon |
278 // | 278 // |
279 this.bttnAddWeapon.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); | 279 this.bttnAddWeapon.Anchor = ((System.Windows.Forms.AnchorStyles) ((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); |
280 this.bttnAddWeapon.FlatStyle = System.Windows.Forms.FlatStyle.System; | 280 this.bttnAddWeapon.FlatStyle = System.Windows.Forms.FlatStyle.System; |
281 this.bttnAddWeapon.Location = new System.Drawing.Point(520, 200); | 281 this.bttnAddWeapon.Location = new System.Drawing.Point(520, 200); |
282 this.bttnAddWeapon.Name = "bttnAddWeapon"; | 282 this.bttnAddWeapon.Name = "bttnAddWeapon"; |
283 this.bttnAddWeapon.Size = new System.Drawing.Size(88, 22); | 283 this.bttnAddWeapon.Size = new System.Drawing.Size(88, 22); |
284 this.bttnAddWeapon.TabIndex = 4; | 284 this.bttnAddWeapon.TabIndex = 4; |
285 this.bttnAddWeapon.Text = "add"; | 285 this.bttnAddWeapon.Text = "add"; |
286 this.bttnAddWeapon.Click += new System.EventHandler(this.bttnAddWeapon_Click); | 286 this.bttnAddWeapon.Click += new System.EventHandler(this.bttnAddWeapon_Click); |
287 // | 287 // |
288 // bttnRemoveWeapon | 288 // bttnRemoveWeapon |
289 // | 289 // |
290 this.bttnRemoveWeapon.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); | 290 this.bttnRemoveWeapon.Anchor = ((System.Windows.Forms.AnchorStyles) ((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); |
291 this.bttnRemoveWeapon.Enabled = false; | 291 this.bttnRemoveWeapon.Enabled = false; |
292 this.bttnRemoveWeapon.FlatStyle = System.Windows.Forms.FlatStyle.System; | 292 this.bttnRemoveWeapon.FlatStyle = System.Windows.Forms.FlatStyle.System; |
293 this.bttnRemoveWeapon.Location = new System.Drawing.Point(520, 248); | 293 this.bttnRemoveWeapon.Location = new System.Drawing.Point(520, 248); |
294 this.bttnRemoveWeapon.Name = "bttnRemoveWeapon"; | 294 this.bttnRemoveWeapon.Name = "bttnRemoveWeapon"; |
295 this.bttnRemoveWeapon.Size = new System.Drawing.Size(88, 22); | 295 this.bttnRemoveWeapon.Size = new System.Drawing.Size(88, 22); |
297 this.bttnRemoveWeapon.Text = "remove"; | 297 this.bttnRemoveWeapon.Text = "remove"; |
298 this.bttnRemoveWeapon.Click += new System.EventHandler(this.bttnRemoveWeapon_Click); | 298 this.bttnRemoveWeapon.Click += new System.EventHandler(this.bttnRemoveWeapon_Click); |
299 // | 299 // |
300 // reqdList | 300 // reqdList |
301 // | 301 // |
302 this.reqdList.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) | 302 this.reqdList.Anchor = ((System.Windows.Forms.AnchorStyles) (((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) |
303 | System.Windows.Forms.AnchorStyles.Right))); | 303 | System.Windows.Forms.AnchorStyles.Right))); |
304 this.reqdList.Location = new System.Drawing.Point(104, 128); | 304 this.reqdList.Location = new System.Drawing.Point(104, 128); |
305 this.reqdList.Name = "reqdList"; | 305 this.reqdList.Name = "reqdList"; |
306 this.reqdList.Size = new System.Drawing.Size(408, 69); | 306 this.reqdList.Size = new System.Drawing.Size(408, 69); |
307 this.reqdList.TabIndex = 6; | 307 this.reqdList.TabIndex = 6; |
308 this.reqdList.DoubleClick += new System.EventHandler(this.reqdList_DoubleClick); | 308 this.reqdList.DoubleClick += new System.EventHandler(this.reqdList_DoubleClick); |
309 this.reqdList.SelectedIndexChanged += new System.EventHandler(this.reqdList_SelectedIndexChanged); | 309 this.reqdList.SelectedIndexChanged += new System.EventHandler(this.reqdList_SelectedIndexChanged); |
310 // | 310 // |
311 // bttnEditWeapon | 311 // bttnEditWeapon |
312 // | 312 // |
313 this.bttnEditWeapon.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); | 313 this.bttnEditWeapon.Anchor = ((System.Windows.Forms.AnchorStyles) ((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); |
314 this.bttnEditWeapon.Enabled = false; | 314 this.bttnEditWeapon.Enabled = false; |
315 this.bttnEditWeapon.FlatStyle = System.Windows.Forms.FlatStyle.System; | 315 this.bttnEditWeapon.FlatStyle = System.Windows.Forms.FlatStyle.System; |
316 this.bttnEditWeapon.Location = new System.Drawing.Point(520, 224); | 316 this.bttnEditWeapon.Location = new System.Drawing.Point(520, 224); |
317 this.bttnEditWeapon.Name = "bttnEditWeapon"; | 317 this.bttnEditWeapon.Name = "bttnEditWeapon"; |
318 this.bttnEditWeapon.Size = new System.Drawing.Size(88, 22); | 318 this.bttnEditWeapon.Size = new System.Drawing.Size(88, 22); |
320 this.bttnEditWeapon.Text = "edit"; | 320 this.bttnEditWeapon.Text = "edit"; |
321 this.bttnEditWeapon.Click += new System.EventHandler(this.bttnEditWeapon_Click); | 321 this.bttnEditWeapon.Click += new System.EventHandler(this.bttnEditWeapon_Click); |
322 // | 322 // |
323 // optList | 323 // optList |
324 // | 324 // |
325 this.optList.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) | 325 this.optList.Anchor = ((System.Windows.Forms.AnchorStyles) (((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) |
326 | System.Windows.Forms.AnchorStyles.Right))); | 326 | System.Windows.Forms.AnchorStyles.Right))); |
327 this.optList.Location = new System.Drawing.Point(104, 200); | 327 this.optList.Location = new System.Drawing.Point(104, 200); |
328 this.optList.Name = "optList"; | 328 this.optList.Name = "optList"; |
329 this.optList.Size = new System.Drawing.Size(408, 69); | 329 this.optList.Size = new System.Drawing.Size(408, 69); |
330 this.optList.TabIndex = 9; | 330 this.optList.TabIndex = 9; |
340 this.lblOptionalEquip.Text = "opt equipment"; | 340 this.lblOptionalEquip.Text = "opt equipment"; |
341 this.lblOptionalEquip.TextAlign = System.Drawing.ContentAlignment.TopRight; | 341 this.lblOptionalEquip.TextAlign = System.Drawing.ContentAlignment.TopRight; |
342 // | 342 // |
343 // bttnReplaceWeapon | 343 // bttnReplaceWeapon |
344 // | 344 // |
345 this.bttnReplaceWeapon.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); | 345 this.bttnReplaceWeapon.Anchor = ((System.Windows.Forms.AnchorStyles) ((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); |
346 this.bttnReplaceWeapon.Enabled = false; | 346 this.bttnReplaceWeapon.Enabled = false; |
347 this.bttnReplaceWeapon.FlatStyle = System.Windows.Forms.FlatStyle.System; | 347 this.bttnReplaceWeapon.FlatStyle = System.Windows.Forms.FlatStyle.System; |
348 this.bttnReplaceWeapon.Location = new System.Drawing.Point(520, 128); | 348 this.bttnReplaceWeapon.Location = new System.Drawing.Point(520, 128); |
349 this.bttnReplaceWeapon.Name = "bttnReplaceWeapon"; | 349 this.bttnReplaceWeapon.Name = "bttnReplaceWeapon"; |
350 this.bttnReplaceWeapon.Size = new System.Drawing.Size(88, 22); | 350 this.bttnReplaceWeapon.Size = new System.Drawing.Size(88, 22); |
352 this.bttnReplaceWeapon.Text = "replace"; | 352 this.bttnReplaceWeapon.Text = "replace"; |
353 this.bttnReplaceWeapon.Click += new System.EventHandler(this.bttnReplaceWeapon_Click); | 353 this.bttnReplaceWeapon.Click += new System.EventHandler(this.bttnReplaceWeapon_Click); |
354 // | 354 // |
355 // bttnEditReqdWeapon | 355 // bttnEditReqdWeapon |
356 // | 356 // |
357 this.bttnEditReqdWeapon.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); | 357 this.bttnEditReqdWeapon.Anchor = ((System.Windows.Forms.AnchorStyles) ((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); |
358 this.bttnEditReqdWeapon.Enabled = false; | 358 this.bttnEditReqdWeapon.Enabled = false; |
359 this.bttnEditReqdWeapon.FlatStyle = System.Windows.Forms.FlatStyle.System; | 359 this.bttnEditReqdWeapon.FlatStyle = System.Windows.Forms.FlatStyle.System; |
360 this.bttnEditReqdWeapon.Location = new System.Drawing.Point(520, 152); | 360 this.bttnEditReqdWeapon.Location = new System.Drawing.Point(520, 152); |
361 this.bttnEditReqdWeapon.Name = "bttnEditReqdWeapon"; | 361 this.bttnEditReqdWeapon.Name = "bttnEditReqdWeapon"; |
362 this.bttnEditReqdWeapon.Size = new System.Drawing.Size(88, 22); | 362 this.bttnEditReqdWeapon.Size = new System.Drawing.Size(88, 22); |
366 // | 366 // |
367 // lblPoints | 367 // lblPoints |
368 // | 368 // |
369 this.lblPoints.Location = new System.Drawing.Point(358, 8); | 369 this.lblPoints.Location = new System.Drawing.Point(358, 8); |
370 this.lblPoints.Name = "lblPoints"; | 370 this.lblPoints.Name = "lblPoints"; |
371 this.lblPoints.Size = new System.Drawing.Size(100, 21); | 371 this.lblPoints.Size = new System.Drawing.Size(88, 21); |
372 this.lblPoints.TabIndex = 12; | 372 this.lblPoints.TabIndex = 12; |
373 // | 373 // |
374 // FrmUnit | 374 // FrmUnit |
375 // | 375 // |
376 this.AutoScaleBaseSize = new System.Drawing.Size(5, 13); | 376 this.AutoScaleBaseSize = new System.Drawing.Size(5, 13); |
391 this.Controls.Add(this.statsGrid); | 391 this.Controls.Add(this.statsGrid); |
392 this.Name = "FrmUnit"; | 392 this.Name = "FrmUnit"; |
393 this.ShowInTaskbar = false; | 393 this.ShowInTaskbar = false; |
394 this.Text = "FrmUnit"; | 394 this.Text = "FrmUnit"; |
395 this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.FrmUnit_FormClosing); | 395 this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.FrmUnit_FormClosing); |
396 ((System.ComponentModel.ISupportInitialize)(this.statsGrid)).EndInit(); | 396 ((System.ComponentModel.ISupportInitialize) (this.statsGrid)).EndInit(); |
397 ((System.ComponentModel.ISupportInitialize)(this.unitSize)).EndInit(); | 397 ((System.ComponentModel.ISupportInitialize) (this.unitSize)).EndInit(); |
398 this.ResumeLayout(false); | 398 this.ResumeLayout(false); |
399 this.PerformLayout(); | 399 this.PerformLayout(); |
400 | 400 |
401 } | 401 } |
402 #endregion | 402 #endregion |