mirror of
https://github.com/Artemis-RGB/Artemis
synced 2026-11-11 19:36:28 +00:00
And the winner is... Stylet!
This commit is contained in:
1 parent
73241793b8
commit
418b3adea7
24 files changed
+299
-370
No files matched your search
@@ -0,0 +1,18 @@
|
||||
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();
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user