Mercurial > repos > IBBoard.WarFoundry.GUI.WinForms
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 wrap: on
line diff
--- a/FrmNewArmy.cs Tue Sep 07 20:03:52 2010 +0000 +++ b/FrmNewArmy.cs Wed Sep 08 20:10:57 2010 +0000 @@ -329,7 +329,7 @@ txtArmyName.Enabled = raceSelected; armySize.Enabled = raceSelected; race = (Race)lstRaces.SelectedItem; - txtArmyName.Text = race.ArmyDefaultName; + txtArmyName.Text = String.Format(race.ArmyDefaultName, Translation.GetTranslation("armySizePts", "{0}pt", armySize.Value)); } private void gameSystems_SelectedValueChanged(object sender, EventArgs e)