summaryrefslogtreecommitdiffstats
path: root/win/CS/HandBrakeWPF/Startup
diff options
context:
space:
mode:
authorsr55 <[email protected]>2012-06-08 02:13:59 +0000
committersr55 <[email protected]>2012-06-08 02:13:59 +0000
commita03739f0457ad9211744e540f33ab8a3c05598b9 (patch)
tree2f0dda9a6f9e9c48b2bb58d9cc6462c77bd55715 /win/CS/HandBrakeWPF/Startup
parent368023e13a633e9dc94f27696c84f3ce3ca24ed3 (diff)
WinGui: Added a Shell View which can host various windows. By default this will host the Main window. Changed the Options window to be a usercontrol so it can be hosted in this shell view, allowing for a chrome-esk style options within the main window without the need for a dialog window. The options window will need some design changes. (Coming soon)
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@4721 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'win/CS/HandBrakeWPF/Startup')
-rw-r--r--win/CS/HandBrakeWPF/Startup/CastleBootstrapper.cs3
1 files changed, 2 insertions, 1 deletions
diff --git a/win/CS/HandBrakeWPF/Startup/CastleBootstrapper.cs b/win/CS/HandBrakeWPF/Startup/CastleBootstrapper.cs
index a348c2c95..2b694252b 100644
--- a/win/CS/HandBrakeWPF/Startup/CastleBootstrapper.cs
+++ b/win/CS/HandBrakeWPF/Startup/CastleBootstrapper.cs
@@ -31,7 +31,7 @@ namespace HandBrakeWPF.Startup
/// <summary>
/// The Castle Bootstrapper
/// </summary>
- public class CastleBootstrapper : Bootstrapper<IMainViewModel>
+ public class CastleBootstrapper : Bootstrapper<IShellViewModel>
{
/// <summary>
/// The Windsor Container
@@ -55,6 +55,7 @@ namespace HandBrakeWPF.Startup
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<IShellViewModel>().ImplementedBy<ShellViewModel>().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.Transient));
this.windsorContainer.Register(Component.For<IPreviewViewModel>().ImplementedBy<PreviewViewModel>().LifeStyle.Is(LifestyleType.Singleton));