mirror of
https://github.com/Artemis-RGB/Artemis
synced 2026-02-04 02:43:32 +00:00
Update namespaces
Clean up unused imports
Replace Avalonia.ReactiveUI with ReactiveUI.Avalonia 🙄
32 lines
761 B
C#
32 lines
761 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
|
|
namespace Artemis.Storage.Entities.Profile;
|
|
|
|
public class ProfileEntity
|
|
{
|
|
public ProfileEntity()
|
|
{
|
|
Folders = new List<FolderEntity>();
|
|
Layers = new List<LayerEntity>();
|
|
}
|
|
|
|
public Guid Id { get; set; }
|
|
|
|
public string Name { get; set; } = string.Empty;
|
|
public bool IsFreshImport { get; set; }
|
|
|
|
public List<FolderEntity> Folders { get; set; }
|
|
public List<LayerEntity> Layers { get; set; }
|
|
|
|
public void UpdateGuid(Guid guid)
|
|
{
|
|
Guid oldGuid = Id;
|
|
Id = guid;
|
|
|
|
FolderEntity? rootFolder = Folders.FirstOrDefault(f => f.ParentId == oldGuid);
|
|
if (rootFolder != null)
|
|
rootFolder.ParentId = Id;
|
|
}
|
|
} |