summaryrefslogtreecommitdiffstats
path: root/win/CS/HandBrakeWPF
diff options
context:
space:
mode:
authorsr55 <[email protected]>2011-09-25 16:40:26 +0000
committersr55 <[email protected]>2011-09-25 16:40:26 +0000
commit3a34f16a25e45e87e27cc107fd489eef1abc73f7 (patch)
tree8be7ce43aefe75ee8814bbca8f9cc064c2d777e6 /win/CS/HandBrakeWPF
parentea437273cecf5bddcc7b8913bb4e8eef6b60d53b (diff)
WinGui: Added implementation of IWindsorInstaller to the AppServices library and updated the installers to use wildcards instead of hard coded files.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@4251 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'win/CS/HandBrakeWPF')
-rw-r--r--win/CS/HandBrakeWPF/Startup/CastleBootstrapper.cs6
-rw-r--r--win/CS/HandBrakeWPF/app.config5
2 files changed, 10 insertions, 1 deletions
diff --git a/win/CS/HandBrakeWPF/Startup/CastleBootstrapper.cs b/win/CS/HandBrakeWPF/Startup/CastleBootstrapper.cs
index 22811d348..02710b161 100644
--- a/win/CS/HandBrakeWPF/Startup/CastleBootstrapper.cs
+++ b/win/CS/HandBrakeWPF/Startup/CastleBootstrapper.cs
@@ -11,6 +11,8 @@
using Castle.MicroKernel.Registration;
using Castle.Windsor;
+ using HandBrake.ApplicationServices;
+
using HandBrakeWPF.ViewModels;
using HandBrakeWPF.ViewModels.Interfaces;
@@ -33,6 +35,10 @@
this.windsorContainer.Register(Component.For<IWindowManager>().ImplementedBy<WindowManager>());
this.windsorContainer.Register(Component.For<IEventAggregator>().ImplementedBy<EventAggregator>());
+ // Initialise the ApplicationServices IWindsorInstaller
+ this.windsorContainer.Register(Component.For<IWindsorInstaller>().ImplementedBy<ServicesWindsorInstaller>());
+ this.windsorContainer.Install(windsorContainer.ResolveAll<IWindsorInstaller>());
+
// Shell
this.windsorContainer.Register(Component.For<IMainViewModel>().ImplementedBy<MainViewModel>().LifeStyle.Is(LifestyleType.Singleton));
}
diff --git a/win/CS/HandBrakeWPF/app.config b/win/CS/HandBrakeWPF/app.config
index f76deb94f..31b594129 100644
--- a/win/CS/HandBrakeWPF/app.config
+++ b/win/CS/HandBrakeWPF/app.config
@@ -1,3 +1,6 @@
<?xml version="1.0"?>
<configuration>
-<startup><supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0,Profile=Client"/></startup></configuration>
+ <startup>
+ <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0,Profile=Client"/>
+ </startup>
+</configuration> \ No newline at end of file