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 diff
     1.1 --- a/FrmNewArmy.cs	Sun Sep 05 20:53:10 2010 +0000
     1.2 +++ b/FrmNewArmy.cs	Tue Sep 07 13:22:08 2010 +0000
     1.3 @@ -32,7 +32,7 @@
     1.4  		private ComboBox gameSystems;
     1.5  		private System.Windows.Forms.TextBox txtArmyName;
     1.6  
     1.7 -        private string defaultArmyTypeName;
     1.8 +        private string defaultArmyName;
     1.9  		private GameSystem system;
    1.10  		private Race race;
    1.11  		private string armyName;
    1.12 @@ -330,11 +330,11 @@
    1.13  			txtArmyName.Enabled = raceSelected;
    1.14  			armySize.Enabled = raceSelected;
    1.15              race = (Race)lstRaces.SelectedItem;
    1.16 -            defaultArmyTypeName = (string)WarFoundryLoader.GetDefault().GetRace(GetSelectedGameSystem(), race.ID).ArmyDefaultName;
    1.17 -            System.Diagnostics.Debug.WriteLine(race +"FrmNewArmy");
    1.18 +            //defaultArmyName = (string)WarFoundryLoader.GetDefault().GetRace(GetSelectedGameSystem(), race.ID).ArmyDefaultName;
    1.19 +            //System.Diagnostics.Debug.WriteLine(race.ArmyDefaultName +":FrmNewArmy");
    1.20              //defaultArmyName = (string) SelectedRace.Name;
    1.21              //defaultArmyName = (string) race.Name;
    1.22 -            txtArmyName.Text = defaultArmyTypeName;
    1.23 +            txtArmyName.Text = race.Name + ArmySize  ;//ArmyDefaultName;
    1.24  		}
    1.25  
    1.26  		private void gameSystems_SelectedValueChanged(object sender, EventArgs e)