Mercurial > repos > IBBoard.WarFoundry.GUI.WinForms
comparison FrmEditUnitEquipment.cs @ 80:c243b043aa62
Re #179: Make sure that translations are used throughout UI
* Put names back on menu items
* Add some more translation calls
* Make some extra items translatable
* Update English translation file
author | IBBoard <dev@ibboard.co.uk> |
---|---|
date | Wed, 21 Oct 2009 20:11:18 +0000 |
parents | 712915de47fd |
children | 0bb9f40d44eb |
comparison
equal
deleted
inserted
replaced
79:e3488dd61a21 | 80:c243b043aa62 |
---|---|
5 using System; | 5 using System; |
6 using System.Drawing; | 6 using System.Drawing; |
7 using System.ComponentModel; | 7 using System.ComponentModel; |
8 using System.Windows.Forms; | 8 using System.Windows.Forms; |
9 using IBBoard.Commands; | 9 using IBBoard.Commands; |
10 using IBBoard.Windows.Forms; | |
11 using IBBoard.Windows.Forms.I18N; | |
10 using IBBoard.WarFoundry.API; | 12 using IBBoard.WarFoundry.API; |
11 using IBBoard.WarFoundry.API.Commands; | 13 using IBBoard.WarFoundry.API.Commands; |
12 using IBBoard.WarFoundry.API.Objects; | 14 using IBBoard.WarFoundry.API.Objects; |
13 | 15 |
14 namespace IBBoard.WarFoundry.GUI.WinForms | 16 namespace IBBoard.WarFoundry.GUI.WinForms |
19 public class FrmEditUnitEquipment : System.Windows.Forms.Form | 21 public class FrmEditUnitEquipment : System.Windows.Forms.Form |
20 { | 22 { |
21 private Unit unit; | 23 private Unit unit; |
22 private UnitEquipmentItem equipItem; | 24 private UnitEquipmentItem equipItem; |
23 private CommandStack commandStack; | 25 private CommandStack commandStack; |
24 private System.Windows.Forms.Label lblAmount; | 26 private IBBLabel lblAmount; |
25 private System.Windows.Forms.Button bttnCancel; | 27 private IBBButton bttnCancel; |
26 private System.Windows.Forms.Button bttnOkay; | 28 private IBBButton bttnOkay; |
27 private IBBoard.WarFoundry.GUI.WinForms.UI.EquipmentAmountControl equipmentAmount; | 29 private IBBoard.WarFoundry.GUI.WinForms.UI.EquipmentAmountControl equipmentAmount; |
28 /// <summary> | 30 /// <summary> |
29 /// Required designer variable. | 31 /// Required designer variable. |
30 /// </summary> | 32 /// </summary> |
31 private System.ComponentModel.Container components = null; | 33 private System.ComponentModel.Container components = null; |
34 { | 36 { |
35 commandStack = stack; | 37 commandStack = stack; |
36 this.unit = unit; | 38 this.unit = unit; |
37 this.equipItem = equipItem; | 39 this.equipItem = equipItem; |
38 InitializeComponent(); | 40 InitializeComponent(); |
41 ControlTranslator.TranslateControls(Controls); | |
39 this.Text = equipItem.Name + " for " + unit.Name; | 42 this.Text = equipItem.Name + " for " + unit.Name; |
40 equipmentAmount.SetUnit(unit); | 43 equipmentAmount.SetUnit(unit); |
41 equipmentAmount.SetUnitEquipmentItem(equipItem); | 44 equipmentAmount.SetUnitEquipmentItem(equipItem); |
42 bttnOkay.Enabled = false; | 45 bttnOkay.Enabled = false; |
43 } | 46 } |
62 /// Required method for Designer support - do not modify | 65 /// Required method for Designer support - do not modify |
63 /// the contents of this method with the code editor. | 66 /// the contents of this method with the code editor. |
64 /// </summary> | 67 /// </summary> |
65 private void InitializeComponent() | 68 private void InitializeComponent() |
66 { | 69 { |
67 this.lblAmount = new System.Windows.Forms.Label(); | 70 this.lblAmount = new IBBLabel(); |
68 this.bttnCancel = new System.Windows.Forms.Button(); | 71 this.bttnCancel = new IBBButton(); |
69 this.bttnOkay = new System.Windows.Forms.Button(); | 72 this.bttnOkay = new IBBButton(); |
70 this.equipmentAmount = new IBBoard.WarFoundry.GUI.WinForms.UI.EquipmentAmountControl(); | 73 this.equipmentAmount = new IBBoard.WarFoundry.GUI.WinForms.UI.EquipmentAmountControl(); |
71 this.SuspendLayout(); | 74 this.SuspendLayout(); |
72 // | 75 // |
73 // lblAmount | 76 // lblAmount |
74 // | 77 // |