diff FrmSelectSystem.cs @ 10:19bdbb80999c

Closes #47 - Remove magic numbers * Replace "magic number" -1s in WinForms with WarFoundryCore.INFINITY Also: * Code cleanup to remove warnings * Code cleanup to replace space indentation with tabs
author IBBoard <dev@ibboard.co.uk>
date Tue, 19 May 2009 18:51:32 +0000
parents 9828ba4f3f36
children fb55f9f0865e
line wrap: on
line diff
--- a/FrmSelectSystem.cs	Tue May 19 11:10:07 2009 +0000
+++ b/FrmSelectSystem.cs	Tue May 19 18:51:32 2009 +0000
@@ -30,8 +30,8 @@
 		private System.ComponentModel.Container components = null;
 		private IBBoard.Windows.Forms.IBBButton bttnCancel;
 		private IBBoard.Windows.Forms.IBBButton bttnSelectSystem;
+		private GameSystem selectedSystem;
 
-		private GameSystem selectedSystem;
 
         public FrmSelectSystem()
 		{
@@ -43,20 +43,8 @@
             ControlTranslator.TranslateControl(this);
 
 			lstSystems.Items.Clear();
-
             GameSystem[] systems = WarFoundryLoader.GetDefault().GetGameSystems();
-
             lstSystems.DataSource = systems;
-			
-			/*for (int i = 0; i<systems.Length; i++)
-			{
-				lstSystems.Items.Add(systems[i].Name);
-
-				/*if (systems[i].Matches(defaultSystem))
-				{
-					lstSystems.SelectedIndex = i;
-				}* /
-			}*/
 		}
 
 		/// <summary>
@@ -154,9 +142,7 @@
 
 		private void bttnSelectSystem_Click(object sender, System.EventArgs e)
 		{
-            // set the selected system
             selectedSystem = (GameSystem) lstSystems.SelectedItem;
-
             this.DialogResult = DialogResult.OK;
 			this.Close();
 		}