Mercurial > repos > IBBoard.WarFoundry.GUI.WinForms
diff FrmMain.cs @ 85:0bb9f40d44eb
Re #88: Complete initial WinForms UI
* Add basic initial "about" box
* Translations (below)
Re #179: Make sure that translations are used throughout UI
* Make all controls translatable
* Supply translations for all controls
Re #204: Use new limits in WinForms UI
* Warn the user and cap the number if we try to go out of range for equipment
author | IBBoard <dev@ibboard.co.uk> |
---|---|
date | Sat, 31 Oct 2009 20:54:42 +0000 |
parents | c243b043aa62 |
children | 4c5c8f91937a |
line wrap: on
line diff
--- a/FrmMain.cs Sat Oct 31 19:32:48 2009 +0000 +++ b/FrmMain.cs Sat Oct 31 20:54:42 2009 +0000 @@ -36,6 +36,7 @@ public class FrmMain : System.Windows.Forms.Form { private static readonly string AppTitle = "WarFoundry"; + internal static readonly string VERSION = "0.1b4"; const string DefaultDataDir = "data"; private Preferences preferences; @@ -498,10 +499,10 @@ // // miAbout // - this.miAbout.Enabled = false; this.miAbout.Index = 0; this.miAbout.Text = "&about"; this.miAbout.Name = "miAbout"; + this.miAbout.Click += new System.EventHandler(this.miAbout_Click); // // saveArmyDialog // @@ -1308,5 +1309,11 @@ } } } + + private void miAbout_Click(object sender, EventArgs e) + { + FrmAbout about = new FrmAbout(); + about.ShowDialog(this); + } } }