Mercurial > repos > IBBoard.WarFoundry.GUI.WinForms
diff FrmSelectSystem.cs @ 1:42cf06b8f897
Re #8 - Get a working Windows WarFoundry
* Update forms to use new package structures for API objects
* Update forms to use separate control translation
* Remove PIDB file from source control
author | IBBoard <dev@ibboard.co.uk> |
---|---|
date | Sat, 27 Dec 2008 18:39:37 +0000 |
parents | 7dd160dacb60 |
children | 8935971e307c |
line wrap: on
line diff
--- a/FrmSelectSystem.cs Fri Dec 19 15:57:51 2008 +0000 +++ b/FrmSelectSystem.cs Sat Dec 27 18:39:37 2008 +0000 @@ -8,6 +8,8 @@ using IBBoard.Lang; using IBBoard.WarFoundry.API; using IBBoard.Windows.Forms; +using IBBoard.WarFoundry.API.Objects; +using IBBoard.Windows.Forms.I18N; namespace IBBoard.WarFoundry { @@ -27,21 +29,18 @@ private GameSystem selectedSystem; - public FrmSelectSystem() : this(null) - { - } - - public FrmSelectSystem(WarFoundryFactory currFactory) + public FrmSelectSystem() { // // Required for Windows Form Designer support // InitializeComponent(); - Translation.TranslateControl(this); + ControlTranslator.TranslateControl(this); lstSystems.Items.Clear(); - GameSystem[] systems = currFactory.GetGameSystems(); + + GameSystem[] systems = WarFoundryLoader.GetDefault().GetGameSystems(); lstSystems.DataSource = systems;