diff options
author | sr55 <[email protected]> | 2011-12-27 18:41:31 +0000 |
---|---|---|
committer | sr55 <[email protected]> | 2011-12-27 18:41:31 +0000 |
commit | 20fd52b888f111ac2d7670fa3c41e495661cdebd (patch) | |
tree | 9f8f53b17435ed3a8a14df338ec26410a3ecba75 /win/CS/HandBrakeWPF/Startup | |
parent | 015a2a45691dee523047f3b2a1a3628a2dd106f9 (diff) |
WinGui: (WPF) Initial work to implement the "Queue" and "Add Preset" Windows. Additional setup work around the main window.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@4389 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'win/CS/HandBrakeWPF/Startup')
-rw-r--r-- | win/CS/HandBrakeWPF/Startup/CastleBootstrapper.cs | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/win/CS/HandBrakeWPF/Startup/CastleBootstrapper.cs b/win/CS/HandBrakeWPF/Startup/CastleBootstrapper.cs index 695e0c7c1..13e5a896e 100644 --- a/win/CS/HandBrakeWPF/Startup/CastleBootstrapper.cs +++ b/win/CS/HandBrakeWPF/Startup/CastleBootstrapper.cs @@ -7,6 +7,9 @@ // </summary>
// --------------------------------------------------------------------------------------------------------------------
+using HandBrakeWPF.Services;
+using HandBrakeWPF.Services.Interfaces;
+
namespace HandBrakeWPF.Startup
{
using System;
@@ -22,8 +25,8 @@ namespace HandBrakeWPF.Startup using HandBrake.ApplicationServices;
- using HandBrakeWPF.ViewModels;
- using HandBrakeWPF.ViewModels.Interfaces;
+ using ViewModels;
+ using ViewModels.Interfaces;
/// <summary>
/// The Castle Bootstrapper
@@ -49,7 +52,15 @@ namespace HandBrakeWPF.Startup this.windsorContainer.Install(windsorContainer.ResolveAll<IWindsorInstaller>());
// Shell
+ this.windsorContainer.Register(Component.For<IErrorService>().ImplementedBy<ErrorService>().LifeStyle.Is(LifestyleType.Singleton));
+ this.windsorContainer.Register(Component.For<IErrorViewModel>().ImplementedBy<ErrorViewModel>().LifeStyle.Is(LifestyleType.Singleton));
this.windsorContainer.Register(Component.For<IMainViewModel>().ImplementedBy<MainViewModel>().LifeStyle.Is(LifestyleType.Singleton));
+ this.windsorContainer.Register(Component.For<IQueueViewModel>().ImplementedBy<QueueViewModel>().LifeStyle.Is(LifestyleType.Singleton));
+ this.windsorContainer.Register(Component.For<IAddPresetViewModel>().ImplementedBy<AddPresetViewModel>().LifeStyle.Is(LifestyleType.Singleton));
+ this.windsorContainer.Register(Component.For<IPreviewViewModel>().ImplementedBy<PreviewViewModel>().LifeStyle.Is(LifestyleType.Singleton));
+ this.windsorContainer.Register(Component.For<ILogViewModel>().ImplementedBy<LogViewModel>().LifeStyle.Is(LifestyleType.Singleton));
+ this.windsorContainer.Register(Component.For<IAboutViewModel>().ImplementedBy<AboutViewModel>().LifeStyle.Is(LifestyleType.Singleton));
+ this.windsorContainer.Register(Component.For<IOptionsViewModel>().ImplementedBy<OptionsViewModel>().LifeStyle.Is(LifestyleType.Singleton));
}
/// <summary>
|