diff FrmNewUnit.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 b0089e875754
line wrap: on
line diff
--- a/FrmNewUnit.cs	Tue Nov 23 21:03:46 2010 +0000
+++ b/FrmNewUnit.cs	Sat Dec 18 16:42:51 2010 +0000
@@ -10,14 +10,14 @@
 using IBBoard.WarFoundry.API.Requirements;
 using log4net;
 
-namespace IBBoard.WarFoundry.GTK
+namespace IBBoard.WarFoundry.GUI.GTK
 {
 	public partial class FrmNewUnit : TranslatableDialog
 	{
 		private ILog logger = LogManager.GetLogger(typeof(FrmNewUnit));
-				private UnitType unitType;
+		private UnitType unitType;
 		private Army unitArmy;
-		
+
 		public FrmNewUnit(Race race, Category cat, Army army)
 		{
 			this.Build();
@@ -42,23 +42,23 @@
 			lstUnitTypes.Model = store;
 			lstUnitTypes.Selection.Changed += new EventHandler(OnSelectionChanged);
 		}
-		
+
 		private void RenderUnitTypeName(TreeViewColumn column, CellRenderer cell, TreeModel model, TreeIter iter)
 		{
 			UnitType type = (UnitType)model.GetValue(iter, 0);
 			(cell as CellRendererText).Text = type.Name;
 		}
-		
+
 		protected virtual void OnSelectionChanged(object o, EventArgs e)
 		{
 			SetSelectUnitEnabledVal();
 		}
-		
+
 		public UnitType SelectedUnit
 		{
 			get { return unitType; }
 		}
-		
+
 		private UnitType GetSelectedUnitType()
 		{		
 			TreeModel model;
@@ -73,7 +73,7 @@
 			
 			return toReturn;
 		}
-		
+
 		private void SetSelectUnitEnabledVal()
 		{
 			UnitType type = GetSelectedUnitType();