mirror of
https://github.com/Artemis-RGB/Artemis
synced 2026-11-11 19:36:28 +00:00
18 lines
453 B
C#
18 lines
453 B
C#
using Artemis.UI.ViewModels.Interfaces;
|
|
using Ninject.Extensions.Conventions;
|
|
using Ninject.Modules;
|
|
|
|
namespace Artemis.UI.Ninject
|
|
{
|
|
public class UIModule : NinjectModule
|
|
{
|
|
public override void Load()
|
|
{
|
|
// Bind all viewmodels
|
|
Kernel.Bind(x =>
|
|
{
|
|
x.FromThisAssembly().SelectAllClasses().InheritedFrom<IArtemisViewModel>().BindAllInterfaces();
|
|
});
|
|
}
|
|
}
|
|
} |