Modules - Ordering WIP

This commit is contained in:
SpoinkyNL committed 2020-08-27 00:21:44 +02:00
1 parent d62d389d9f
commit bfb122e95a
21 files changed
+535 -45

No files matched your search

@@ -10,7 +10,7 @@ namespace Artemis.UI.Screens.Settings.Tabs.Modules
{
private readonly IPluginService _pluginService;
public ModuleOrderTabViewModel(IPluginService pluginService)
public ModuleOrderTabViewModel(IPluginService pluginService, IModuleService moduleService)
{
DisplayName = "MODULE PRIORITY";
@@ -18,12 +18,17 @@ namespace Artemis.UI.Screens.Settings.Tabs.Modules
NormalModules = new BindableCollection<Core.Plugins.Modules.Module>();
ApplicationModules = new BindableCollection<Core.Plugins.Modules.Module>();
OverlayModules = new BindableCollection<Core.Plugins.Modules.Module>();
ModulesDropHandler = new ModulesDropHandler(moduleService, NormalModules, ApplicationModules, OverlayModules);
}
public BindableCollection<Core.Plugins.Modules.Module> NormalModules { get; set; }
public BindableCollection<Core.Plugins.Modules.Module> ApplicationModules { get; set; }
public BindableCollection<Core.Plugins.Modules.Module> OverlayModules { get; set; }
public ModulesDropHandler ModulesDropHandler { get; }
protected override void OnActivate()
{
// Take it off the UI thread to avoid freezing on tab change