diff FrmNewUnit.cs @ 13:6b2c8e55564a

* Fix line terminators no-open-ticket
author IBBoard <dev@ibboard.co.uk>
date Sat, 27 Jun 2009 19:05:57 +0000
parents 65279b85446f
children a191d0655f55
line wrap: on
line diff
--- a/FrmNewUnit.cs	Thu Jun 25 18:12:43 2009 +0000
+++ b/FrmNewUnit.cs	Sat Jun 27 19:05:57 2009 +0000
@@ -12,7 +12,7 @@
 namespace IBBoard.WarFoundry.GTK
 {
 	public partial class FrmNewUnit : Gtk.Dialog
-	{
+	{
 		private ILog logger = LogManager.GetLogger(typeof(FrmNewUnit));
 		
 		private UnitType unitType;
@@ -54,7 +54,7 @@
 			SetSelectUnitEnabledVal();
 		}
 		
-		public UnitType SelectedUnit
+		public UnitType SelectedUnit
 		{
 			get { return unitType; }
 		}
@@ -74,27 +74,27 @@
 			return toReturn;
 		}
 		
-		private void SetSelectUnitEnabledVal()
+		private void SetSelectUnitEnabledVal()
 		{
 			UnitType type = GetSelectedUnitType();
-			
-			if (type!=null)
-			{
+			
+			if (type!=null)
+			{
 				buttonOk.Sensitive = true;
-				List<FailedUnitRequirement> fails = unitArmy.CanAddUnitType(type);
-				lblNewUnitWarning.Visible = (fails != null);
-
-				if (fails.Count > 0)
+				List<FailedUnitRequirement> fails = unitArmy.CanAddUnitType(type);
+				lblNewUnitWarning.Visible = (fails != null);
+
+				if (fails.Count > 0)
 				{
-					//FIXME: currently only show the first error
-					lblNewUnitWarning.Text = fails[0].Description;
-				}
-			}
-			else
-			{
+					//FIXME: currently only show the first error
+					lblNewUnitWarning.Text = fails[0].Description;
+				}
+			}
+			else
+			{
 				buttonOk.Sensitive = false;
-				lblNewUnitWarning.Visible = false;
-			}
+				lblNewUnitWarning.Visible = false;
+			}
 		}
 
 		protected virtual void OnButtonCancelActivated (object sender, System.EventArgs e)