Started work on profiles

This commit is contained in:
Robert committed 2019-11-18 17:33:20 +01:00
1 parent 36f3ec3071
commit bb56a45a7f
28 files changed
+575 -375

No files matched your search

@@ -5,6 +5,6 @@ namespace Artemis.UI.Ninject.Factories
{
public interface IProfileEditorViewModelFactory
{
ProfileEditorViewModel CreateModuleViewModel(Module module);
ProfileEditorViewModel CreateModuleViewModel(ProfileModule module);
}
}
+10
View File
@@ -1,5 +1,6 @@
using Artemis.UI.Ninject.Factories;
using Artemis.UI.Screens;
using Artemis.UI.Screens.Module.ProfileEditor;
using Artemis.UI.Services.Interfaces;
using Artemis.UI.Stylet;
using Artemis.UI.ViewModels.Dialogs;
@@ -38,6 +39,15 @@ namespace Artemis.UI.Ninject
Bind<IModuleViewModelFactory>().ToFactory();
Bind<IProfileEditorViewModelFactory>().ToFactory();
// Bind profile editor VMs
Kernel.Bind(x =>
{
x.FromThisAssembly()
.SelectAllClasses()
.InheritedFrom<ProfileEditorPanelViewModel>()
.BindAllBaseClasses();
});
// Bind all UI services as singletons
Kernel.Bind(x =>
{