Mercurial > repos > IBDev-IBBoard.WarFoundry.GUI.WinForms
changeset 35:27b1837c837e
Re #124: Remove factory factory
* Replace factory factory calls with direct invocation of GetFactory()
author | IBBoard <dev@ibboard.co.uk> |
---|---|
date | Sat, 15 Aug 2009 09:38:21 +0000 |
parents | 3ceb0efd261f |
children | 6ab7ddc038f9 |
files | FrmMain.cs |
diffstat | 1 files changed, 1 insertions(+), 7 deletions(-) [+] |
line wrap: on
line diff
--- a/FrmMain.cs Thu Aug 13 21:16:21 2009 +0000 +++ b/FrmMain.cs Sat Aug 15 09:38:21 2009 +0000 @@ -149,13 +149,7 @@ // hack to load default files WarFoundryLoader.GetDefault().AddLoadDirectory(new DirectoryInfo(Constants.ExecutablePath + Constants.DirectoryString + DefaultDataDir)); - - IWarFoundryFactory factory = WarFoundryFactoryFactory.GetFactoryFactory().GetFactory(typeof(WarFoundryXmlFactory)); - - if (factory != null && factory is WarFoundryXmlFactory) - { - WarFoundryLoader.GetDefault().RegisterFactory((WarFoundryXmlFactory)factory); - } + WarFoundryLoader.GetDefault().RegisterFactory(WarFoundryXmlFactory.GetFactory()); /* if (args.Length == 1)