changeset 204:9d17b4674f6e default-army-name

Re #153: Default name for armies * Do a bit of string formatting to allow "{0} Empire Army" to become "2000pt Empire Army"
author IBBoard <dev@ibboard.co.uk>
date Wed, 08 Sep 2010 20:10:57 +0000
parents b4e428dcfcb6
children b3a47b712a8b
files FrmNewArmy.cs
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line diff
     1.1 --- a/FrmNewArmy.cs	Tue Sep 07 20:03:52 2010 +0000
     1.2 +++ b/FrmNewArmy.cs	Wed Sep 08 20:10:57 2010 +0000
     1.3 @@ -329,7 +329,7 @@
     1.4  			txtArmyName.Enabled = raceSelected;
     1.5  			armySize.Enabled = raceSelected;
     1.6  			race = (Race)lstRaces.SelectedItem;
     1.7 -			txtArmyName.Text = race.ArmyDefaultName;
     1.8 +			txtArmyName.Text = String.Format(race.ArmyDefaultName, Translation.GetTranslation("armySizePts", "{0}pt", armySize.Value));
     1.9  		}
    1.10  
    1.11  		private void gameSystems_SelectedValueChanged(object sender, EventArgs e)