mirror of
https://github.com/Artemis-RGB/Artemis
synced 2026-11-12 03:48:56 +00:00
Added module (the first major plugin type) view(model) creation
This commit is contained in:
1 parent
f7fe57676d
commit
3bea4463dc
26 files changed
+172
-1038
No files matched your search
@@ -1,4 +1,5 @@
|
||||
using Artemis.UI.ViewModels.Interfaces;
|
||||
using Artemis.UI.Services.Interfaces;
|
||||
using Artemis.UI.ViewModels.Interfaces;
|
||||
using Ninject.Extensions.Conventions;
|
||||
using Ninject.Modules;
|
||||
|
||||
@@ -17,6 +18,16 @@ namespace Artemis.UI.Ninject
|
||||
.InheritedFrom<IArtemisViewModel>()
|
||||
.BindAllInterfaces();
|
||||
});
|
||||
|
||||
// Bind all UI services as singletons
|
||||
Kernel.Bind(x =>
|
||||
{
|
||||
x.FromThisAssembly()
|
||||
.SelectAllClasses()
|
||||
.InheritedFrom<IArtemisUIService>()
|
||||
.BindAllInterfaces()
|
||||
.Configure(c => c.InSingletonScope());
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user