Implemented profile creation, deletion and activation

This commit is contained in:
Robert committed 2019-11-20 17:30:18 +01:00
1 parent 2fb2e5444c
commit 57a2be778d
17 files changed
+217 -49

No files matched your search

+1 -1
View File
@@ -8,7 +8,7 @@ using Artemis.Storage.Entities.Profile;
namespace Artemis.Core.Models.Profile
{
public class Folder : ProfileElement
public sealed class Folder : ProfileElement
{
public Folder(Profile profile, Folder folder, string name)
{
+1 -1
View File
@@ -8,7 +8,7 @@ using Artemis.Storage.Entities.Profile;
namespace Artemis.Core.Models.Profile
{
public class Layer : ProfileElement
public sealed class Layer : ProfileElement
{
internal Layer(Profile profile, Folder folder, string name)
{
+3 -1
View File
@@ -10,7 +10,7 @@ using Artemis.Storage.Entities.Profile;
namespace Artemis.Core.Models.Profile
{
public class Profile : ProfileElement
public sealed class Profile : ProfileElement
{
internal Profile(PluginInfo pluginInfo, string name)
{
@@ -21,6 +21,8 @@ namespace Artemis.Core.Models.Profile
Name = name;
Children = new List<ProfileElement> {new Folder(this, null, "Root folder")};
ApplyToEntity();
}
internal Profile(PluginInfo pluginInfo, ProfileEntity profileEntity, IPluginService pluginService)