changeset 202:6faadbbb7900 default-army-name

Re #153: Default name for armies Now it reads the data from the race file but changes everything in the list instead?!? Well I guess this was a nice little program until I broken it. My bad.
author snowblizz
date Tue, 07 Sep 2010 13:22:08 +0000
parents 946d37003f97
children b4e428dcfcb6
files FrmNewArmy.cs
diffstat 1 files changed, 4 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/FrmNewArmy.cs	Sun Sep 05 20:53:10 2010 +0000
+++ b/FrmNewArmy.cs	Tue Sep 07 13:22:08 2010 +0000
@@ -32,7 +32,7 @@
 		private ComboBox gameSystems;
 		private System.Windows.Forms.TextBox txtArmyName;
 
-        private string defaultArmyTypeName;
+        private string defaultArmyName;
 		private GameSystem system;
 		private Race race;
 		private string armyName;
@@ -330,11 +330,11 @@
 			txtArmyName.Enabled = raceSelected;
 			armySize.Enabled = raceSelected;
             race = (Race)lstRaces.SelectedItem;
-            defaultArmyTypeName = (string)WarFoundryLoader.GetDefault().GetRace(GetSelectedGameSystem(), race.ID).ArmyDefaultName;
-            System.Diagnostics.Debug.WriteLine(race +"FrmNewArmy");
+            //defaultArmyName = (string)WarFoundryLoader.GetDefault().GetRace(GetSelectedGameSystem(), race.ID).ArmyDefaultName;
+            //System.Diagnostics.Debug.WriteLine(race.ArmyDefaultName +":FrmNewArmy");
             //defaultArmyName = (string) SelectedRace.Name;
             //defaultArmyName = (string) race.Name;
-            txtArmyName.Text = defaultArmyTypeName;
+            txtArmyName.Text = race.Name + ArmySize  ;//ArmyDefaultName;
 		}
 
 		private void gameSystems_SelectedValueChanged(object sender, EventArgs e)