diff FrmNewArmy.cs @ 77:68804784bf6f

Re #86: Complete initial GTK# UI * Add About dialog * Make sure app builds as "WarFoundry-GTK.exe" * Move all UI components to IBBoard.WarFoundry.GUI.GTK namespace
author IBBoard <dev@ibboard.co.uk>
date Sat, 18 Dec 2010 16:42:51 +0000
parents 7055b24cfc79
children 9db2112b31d7
line wrap: on
line diff
--- a/FrmNewArmy.cs	Tue Nov 23 21:03:46 2010 +0000
+++ b/FrmNewArmy.cs	Sat Dec 18 16:42:51 2010 +0000
@@ -12,7 +12,7 @@
 using IBBoard.WarFoundry.GUI.GTK.Util;
 using IBBoard.GtkSharp.Translatable;
 
-namespace IBBoard.WarFoundry.GTK
+namespace IBBoard.WarFoundry.GUI.GTK
 {	
 	public partial class FrmNewArmy : TranslatableDialog, ITranslatable
 	{
@@ -20,7 +20,7 @@
 		private Race race;
 		private string armyName;
 		private int pointsValue;
-		
+
 		public FrmNewArmy(GameSystem gameSystem)
 		{
 			this.Build();
@@ -46,13 +46,13 @@
 				ComboBoxUtils.SelectIndex(systemCombo, 0);
 			}
 		}
-		
+
 		protected virtual void OnSelectionChanged(object o, EventArgs e)
 		{
 			logger.Debug("Race selection changed");
 			SetOkayButtonState();
 		}
-		
+
 		private void SetOkayButtonState()
 		{
 			bttnCreate.Sensitive = (lstRaces.Selection.CountSelectedRows() == 1 && txtArmyName.Text != "" && sbPointsValue.Value > 0);
@@ -88,7 +88,7 @@
 		{
 			SetOkayButtonState();
 		}
-		
+
 		protected virtual void OnSystemComboChanged(object sender, System.EventArgs e)
 		{
 			GameSystem system = ComboBoxUtils.GetSelectedItem<GameSystem>(systemCombo);
@@ -96,7 +96,7 @@
 			logger.Debug("System selection changed: " + (system == null ? "null" : system.Name));
 			SetOkayButtonState();
 		}
-		
+
 		private void SetRaces(GameSystem system)
 		{	
 			ListStore store = new ListStore(typeof(Race));
@@ -111,17 +111,17 @@
 			
 			lstRaces.Model = store;
 		}
-		
+
 		public Race SelectedRace
 		{
 			get { return race; }
 		}
-		
+
 		public string ArmyName
 		{
 			get { return armyName; }
 		}
-		
+
 		public int ArmySize
 		{
 			get { return pointsValue; }