diff 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
line wrap: on
line diff
--- a/FrmEditUnitEquipment.cs	Sun Oct 11 19:57:13 2009 +0000
+++ b/FrmEditUnitEquipment.cs	Wed Oct 21 20:11:18 2009 +0000
@@ -7,6 +7,8 @@
 using System.ComponentModel;
 using System.Windows.Forms;
 using IBBoard.Commands;
+using IBBoard.Windows.Forms;
+using IBBoard.Windows.Forms.I18N;
 using IBBoard.WarFoundry.API;
 using IBBoard.WarFoundry.API.Commands;
 using IBBoard.WarFoundry.API.Objects;
@@ -21,9 +23,9 @@
 		private Unit unit;
 		private UnitEquipmentItem equipItem;
 		private CommandStack commandStack;
-		private System.Windows.Forms.Label lblAmount;
-		private System.Windows.Forms.Button bttnCancel;
-		private System.Windows.Forms.Button bttnOkay;
+		private IBBLabel lblAmount;
+		private IBBButton bttnCancel;
+		private IBBButton bttnOkay;
 		private IBBoard.WarFoundry.GUI.WinForms.UI.EquipmentAmountControl equipmentAmount;
 		/// <summary>
 		/// Required designer variable.
@@ -36,6 +38,7 @@
 			this.unit = unit;
 			this.equipItem = equipItem;
 			InitializeComponent();
+			ControlTranslator.TranslateControls(Controls);
 			this.Text = equipItem.Name + " for " + unit.Name;
 			equipmentAmount.SetUnit(unit);
 			equipmentAmount.SetUnitEquipmentItem(equipItem);
@@ -64,9 +67,9 @@
 		/// </summary>
 		private void InitializeComponent()
 		{
-			this.lblAmount = new System.Windows.Forms.Label();
-			this.bttnCancel = new System.Windows.Forms.Button();
-			this.bttnOkay = new System.Windows.Forms.Button();
+			this.lblAmount = new IBBLabel();
+			this.bttnCancel = new IBBButton();
+			this.bttnOkay = new IBBButton();
 			this.equipmentAmount = new IBBoard.WarFoundry.GUI.WinForms.UI.EquipmentAmountControl();
 			this.SuspendLayout();
 			//