Started work on profiles

This commit is contained in:
Robert committed 2019-11-18 20:11:17 +01:00
1 parent 5921f8ab54
commit fd942dab25
28 files changed
+575 -375

No files matched your search

@@ -4,13 +4,12 @@ namespace Artemis.Core.Plugins.Abstract
{
public abstract class ModuleViewModel : Screen
{
protected ModuleViewModel(Module module, string name)
protected ModuleViewModel(Module module, string displayName)
{
Module = module;
Name = name;
DisplayName = displayName;
}
public string Name { get; }
public Module Module { get; }
}
}
@@ -46,6 +46,19 @@ namespace Artemis.Core.Plugins.Abstract
ActiveProfile = profile;
ActiveProfile.Activate();
}
OnActiveProfileChanged();
}
#region Events
public event EventHandler ActiveProfileChanged;
protected virtual void OnActiveProfileChanged()
{
ActiveProfileChanged?.Invoke(this, EventArgs.Empty);
}
#endregion
}
}