Mercurial > repos > IBBoard.WarFoundry.GUI.WinForms
diff FrmMain.cs @ 22:84f61658e320
Re #88: WinForms fixes
* Put back the menu item names removed in r130 so that translations will work again
author | IBBoard <dev@ibboard.co.uk> |
---|---|
date | Sat, 27 Jun 2009 11:41:18 +0000 |
parents | d84d7244e575 |
children | b8de17271084 |
line wrap: on
line diff
--- a/FrmMain.cs Sat Jun 27 11:06:42 2009 +0000 +++ b/FrmMain.cs Sat Jun 27 11:41:18 2009 +0000 @@ -424,41 +424,47 @@ this.miReloadFiles, this.miSep3, this.miExit}); - this.menuFile.Text = "&file"; + this.menuFile.Text = "&file"; + this.menuFile.Name = "menuFile"; // // miNewArmy // this.miNewArmy.Enabled = false; this.miNewArmy.Index = 0; this.miNewArmy.Text = "&new army"; - this.miNewArmy.Click += new System.EventHandler(this.miNewArmy_Click); + this.miNewArmy.Click += new System.EventHandler(this.miNewArmy_Click); + this.miNewArmy.Name = "miNewArmy"; // // miOpenArmy // this.miOpenArmy.Index = 1; this.miOpenArmy.Text = "&open army"; - this.miOpenArmy.Click += new System.EventHandler(this.miOpenArmy_Click); + this.miOpenArmy.Click += new System.EventHandler(this.miOpenArmy_Click); + this.miOpenArmy.Name = "miOpenArmy"; // // miSaveArmy // this.miSaveArmy.Enabled = false; this.miSaveArmy.Index = 2; this.miSaveArmy.Text = "&save army"; - this.miSaveArmy.Click += new System.EventHandler(this.miSaveArmy_Click); + this.miSaveArmy.Click += new System.EventHandler(this.miSaveArmy_Click); + this.miSaveArmy.Name = "miSaveArmy"; // // miSaveArmyAs // this.miSaveArmyAs.Enabled = false; this.miSaveArmyAs.Index = 3; this.miSaveArmyAs.Text = "save army &as..."; - this.miSaveArmyAs.Click += new System.EventHandler(this.miSaveArmyAs_Click); + this.miSaveArmyAs.Click += new System.EventHandler(this.miSaveArmyAs_Click); + this.miSaveArmyAs.Name = "miSaveArmyAs"; // // miCloseArmy // this.miCloseArmy.Enabled = false; this.miCloseArmy.Index = 4; this.miCloseArmy.Text = "&close army"; - this.miCloseArmy.Click += new System.EventHandler(this.miCloseArmy_Click); + this.miCloseArmy.Click += new System.EventHandler(this.miCloseArmy_Click); + this.miCloseArmy.Name = "miCloseArmy"; // // miSep1 // @@ -469,7 +475,8 @@ // this.miChangeSystem.Index = 6; this.miChangeSystem.Text = "change &game system"; - this.miChangeSystem.Click += new System.EventHandler(this.miChangeSystem_Click); + this.miChangeSystem.Click += new System.EventHandler(this.miChangeSystem_Click); + this.miChangeSystem.Name = "miChangeSystem"; // // miSep2 // @@ -480,7 +487,8 @@ // this.miReloadFiles.Index = 8; this.miReloadFiles.Text = "&reload files"; - this.miReloadFiles.Click += new System.EventHandler(this.miReloadFiles_Click); + this.miReloadFiles.Click += new System.EventHandler(this.miReloadFiles_Click); + this.miReloadFiles.Name = "miReloadFiles"; // // miSep3 // @@ -491,7 +499,8 @@ // this.miExit.Index = 10; this.miExit.Text = "e&xit"; - this.miExit.Click += new System.EventHandler(this.miExit_Click); + this.miExit.Click += new System.EventHandler(this.miExit_Click); + this.miExit.Name = "miExit"; // // menuEdit // @@ -499,21 +508,24 @@ this.menuEdit.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] { this.miUndo, this.miRedo}); - this.menuEdit.Text = "&edit"; + this.menuEdit.Text = "&edit"; + this.menuEdit.Name = "menuEdit"; // // miUndo // this.miUndo.Enabled = false; this.miUndo.Index = 0; this.miUndo.Text = "&undo"; - this.miUndo.Click += new System.EventHandler(this.miUndo_Click); + this.miUndo.Click += new System.EventHandler(this.miUndo_Click); + this.miUndo.Name = "miUndo"; // // miRedo // this.miRedo.Enabled = false; this.miRedo.Index = 1; this.miRedo.Text = "&redo"; - this.miRedo.Click += new System.EventHandler(this.miRedo_Click); + this.miRedo.Click += new System.EventHandler(this.miRedo_Click); + this.miRedo.Name = "miRedo"; // // menuHelp // @@ -521,19 +533,22 @@ this.menuHelp.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] { this.miAbout, this.miDebugWindow}); - this.menuHelp.Text = "&help"; + this.menuHelp.Text = "&help"; + this.menuHelp.Name = "menuHelp"; // // miAbout // this.miAbout.Enabled = false; this.miAbout.Index = 0; - this.miAbout.Text = "&about"; + this.miAbout.Text = "&about"; + this.miAbout.Name = "miAbout"; // // miDebugWindow // this.miDebugWindow.Index = 1; this.miDebugWindow.Text = "&debug"; this.miDebugWindow.Click += new System.EventHandler(this.miDebugWindow_Click); + this.miDebugWindow.Name = "miDebugWindow"; // // saveArmyDialog //