2015-06-26 12:42:20 -04:00
|
|
|
|
using Castle.Facilities.TypedFactory;
|
|
|
|
|
using Castle.MicroKernel.Registration;
|
2015-06-26 05:17:32 -04:00
|
|
|
|
using Castle.MicroKernel.SubSystems.Configuration;
|
|
|
|
|
using Castle.Windsor;
|
|
|
|
|
using Filtration.ThemeEditor.ViewModels;
|
|
|
|
|
|
|
|
|
|
namespace Filtration.ThemeEditor.WindsorInstallers
|
|
|
|
|
{
|
|
|
|
|
public class ViewModelsInstaller : IWindsorInstaller
|
|
|
|
|
{
|
|
|
|
|
public void Install(IWindsorContainer container, IConfigurationStore store)
|
|
|
|
|
{
|
|
|
|
|
container.Register(
|
2015-07-05 17:43:17 -04:00
|
|
|
|
Component.For<IThemeEditorViewModel>()
|
|
|
|
|
.ImplementedBy<ThemeEditorViewModel>()
|
2015-06-26 12:42:20 -04:00
|
|
|
|
.LifeStyle.Transient);
|
|
|
|
|
|
|
|
|
|
container.Register(
|
|
|
|
|
Component.For<IThemeComponentViewModel>()
|
|
|
|
|
.ImplementedBy<ThemeComponentViewModel>()
|
|
|
|
|
.LifeStyle.Transient);
|
|
|
|
|
|
|
|
|
|
container.Register(
|
|
|
|
|
Component.For<IThemeViewModelFactory>().AsFactory());
|
2015-06-26 05:17:32 -04:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|