mirror of
https://github.com/Artemis-RGB/Artemis
synced 2026-11-12 20:06:33 +00:00
Further expanded plugins
Added navigation between modules
This commit is contained in:
1 parent
7773d377a2
commit
6a8edfc00a
21 files changed
+1193
-163
No files matched your search
@@ -14,7 +14,7 @@ namespace Artemis.UI.Stylet
|
||||
|
||||
public override UIElement CreateViewForModel(object model)
|
||||
{
|
||||
if (model is IPluginViewModel)
|
||||
if (model is IModuleViewModel)
|
||||
return CreateViewForPlugin(model);
|
||||
|
||||
return base.CreateViewForModel(model);
|
||||
@@ -22,7 +22,7 @@ namespace Artemis.UI.Stylet
|
||||
|
||||
private UIElement CreateViewForPlugin(object model)
|
||||
{
|
||||
var pluginInfo = ((IPluginViewModel) model).PluginInfo;
|
||||
var pluginInfo = ((IModuleViewModel) model).PluginInfo;
|
||||
var viewPath = pluginInfo.Folder + pluginInfo.ViewModel.Replace("ViewModel", "View").Replace(".cs", ".xaml");
|
||||
// There doesn't have to be a view so make sure one exists
|
||||
if (!File.Exists(viewPath))
|
||||
|
||||
Reference in new issue
Block a user